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
8 years ago
local elevator = game.Workspace.Elevator
local platform = elevator.Platform
local start = elevator.Start
local finish = elevator.Finish
local bodyPosition = platform.BodyPosition

while true do
    bodyPosition.position = start.Position
    wait(3)
    bodyPosition.position = finish.Position
    wait(3)
end

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

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

2 answers

Log in to vote
0
Answered by 8 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

bodyPosition.position = start.Position.Value

Instead of

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.

0
Value is not a valid member of position airkor 10 — 8y
Ad
Log in to vote
0
Answered by 8 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

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

i think that'll work but yea.

Answer this question