I've made an elevator that uses the lerp() method to raise and lower a platform, but once every 3 times it just stops and then teleports to the position I want it. Whenever I take the platform downwards it just stops completely after 2 seconds. Any and all help is appreciated.
Platform = script.Parent.Platform
Sone = script.Parent.Screen.SurfaceGui
STwo = script.Parent.ScreenTwo.SurfaceGui
Sone.Activation.MouseButton1Click:connect(function()
for i = 0,1,0.001 do
Platform.Position = Platform.Position:lerp(Vector3.new(-64, 74.5, 135), i)
wait()
end
end)
STwo.Activation.MouseButton1Click:connect(function()
for i = 0,1,0.001 do
Platform.Position = Platform.Position:lerp(Vector3.new(-64, 10.5, 135), i)
wait()
end
end)
