Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How does this script cause players to fall through?

So I made a block with a timer and once the timer goes off the block moves up like a timed elevator. The purpose is for players to be able to enter the map on it. But once the Block starts to move, the players automatically fall through. Can Collide is checked aswell so I don't know what the problem is.

speed = 1300


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

1 answer

✓ Accepted answer

Yea that happens sometimes when your constantly changing the Position of a part and your standing on it. We can use different methods if you want to achieve this, for example if your using a BodyMover you wouldn't have a problem, or you could weld the Humanoidrootpart to the part thats moving then this script would probably work

This discussion is preserved as it was. New answers, comments, and votes are closed.