Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Elevators BodyPosition wont make my platform move Suggestions? *Updated With ScreenShots*

Asked by
airkor 10
9 years ago
01local elevator = game.Workspace.Elevator
02local platform = elevator.Platform
03local start = elevator.Start
04local finish = elevator.Finish
05local bodyPosition = platform.BodyPosition
06 
07while true do
08    bodyPosition.position = start.Position
09    wait(3)
10    bodyPosition.position = finish.Position
11    wait(3)
12end

s1031.photobucket.com/user/galvixcod/media/RobloxScreenShot08222015_094946759_zpsw6awiznn.png.html?sort=3&o=0

0
unanchore your platform XToonLinkX123 580 — 9y
0
i tried this airkor 10 — 9y
0
it didnt work, all it did was stay on the ground airkor 10 — 9y

2 answers

Log in to vote
0
Answered by 9 years ago

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

1bodyPosition.position = start.Position.Value

Instead of

1bodyPosition.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.

0
Value is not a valid member of position airkor 10 — 9y
Ad
Log in to vote
0
Answered by 9 years ago

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

1model:SetPrimaryPartCFrame(CFrame.new(...))

i think that'll work but yea.

Answer this question