of     1   

Superfryx
#166204724Wednesday, July 01, 2015 8:22 PM GMT

I'm making a script that makes a part sink when you touch it. I want it to sink into the lava part I made, but it always tries to stay above the lava and other parts. This is the line that needs to be changed as it is the line that changes the position. Part.Position=Part.Position + Vector3.new(0,-0.1,0)
InedibleGames
#166205263Wednesday, July 01, 2015 8:28 PM GMT

What's the whole script?
Superfryx
#166205462Wednesday, July 01, 2015 8:30 PM GMT

local debounce=true local Part=script.Parent local Pos=Part.Position function OnTouch(Brick) local Humanoid=Brick.Parent:FindFirstChild("Humanoid") if Humanoid~=nil and debounce==true then local value=0 debounce=false repeat wait(0.1) Part.Position=Part.Position + Vector3.new(0,-0.1,0) value=value+1 until value==40 Part.Position=Pos debounce=true end end script.Parent.Touched:connect(OnTouch)
Superfryx
#166207001Wednesday, July 01, 2015 8:45 PM GMT

Never mind. I managed to get it working! I replaced that line with: Part.CFrame=Part.CFrame*CFrame.new(0,-0.1,0)

    of     1