So I'm still having trouble this one. Its a timed block that acts like an elevator. Players keep falling through it though and Can Collide is checked. How do I keep them from falling through?
speed = 5000
wait(10)
local startingPos = game.Workspace.Elevator.Position
local endingPos = game.Workspace.Elevator.Position + Vector3.new(0,30,0)
local elevator = game.Workspace.Elevator
for ratio = 0,speed,5 do
local newPosition = startingPos:lerp(endingPos, ratio/speed)
elevator.Position = newPosition
wait()
end
wait(10)
local startingPos = game.Workspace.Elevator.Position
local endingPos = game.Workspace.Elevator.Position + Vector3.new(0,-30,0)
local elevator = game.Workspace.Elevator
for ratio = 0,speed,5 do
local newPosition = startingPos:lerp(endingPos, ratio/speed)
elevator.Position = newPosition
wait()
end
