part = script.parent.parent.Part script.Parent.Touched:connect(function() part.position = Vector3.new(25.55, 1.6, -57.6) wait(.05) part.position = Vector3.new(25.55, 1.8, -57.6) wait(.05) part.position = Vector3.new(25.55, 2.0, -57.6) wait(.05) end)
Whenever you hit the part with the script in it, it is supposed to move. That's not working;. Nothing happens when it is touched.
Remember, Lua is case sensitive. This means that upper and lower cases must be correct.
part = script.Parent.Parent.Part --.Parent is capital script.Parent.Touched:connect(function() part.Position = Vector3.new(25.55, 1.6, -57.6) --Position is capital. wait(.05) part.Position = Vector3.new(25.55, 1.8, -57.6) wait(.05) part.Position = Vector3.new(25.55, 2.0, -57.6) wait(.05) end)
However, i would also recommend using a for loop and adding 0.2 to the brick's Position every time.
part = script.Parent.Parent.Part --.Parent is capital script.Parent.Touched:connect(function() for i = 1,3 do part.Position = part.Position + Vector3.new(0,0.2,0) end end)