01 | local elevator = game.Workspace.Elevator |
02 | local platform = elevator.Platform |
03 | local start = elevator.Start |
04 | local finish = elevator.Finish |
05 | local bodyPosition = platform.BodyPosition |
06 |
07 | while true do |
08 | bodyPosition.position = start.Position |
09 | wait( 3 ) |
10 | bodyPosition.position = finish.Position |
11 | wait( 3 ) |
12 | end |
s1031.photobucket.com/user/galvixcod/media/RobloxScreenShot08222015_094946759_zpsw6awiznn.png.html?sort=3&o=0
What exactly is "elevator.Start" and "elevator.Finish"?
I assume these are Vector3Value's or something? if that is the case, then you need to put
1 | bodyPosition.position = start.Position.Value |
Instead of
1 | bodyPosition.position = start.Position |
I just re-read this, and I guess they're actually parts? You may want to change the D, P, maxForce values of your elevator to something higher.
if you're standing on it and it isn't moving, put a bodygyro in it and make the D very high so it can hold the player up.
alternate: might want to get the middle of the elevator and make it a transparent, noncollide brick and group them all then click model, primary part, then find the small brick and click it. then you can just say
1 | model:SetPrimaryPartCFrame(CFrame.new(...)) |
i think that'll work but yea.