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

Why won't this work?

This is the 3rd time asking this question. So I am trying to build a elevator, and for some reason. I have the script in ServerScriptService. When it goes down, It can't go back up My Script:

local model = game.Workspace.Elevator
local platform = model.Platform
local top = model.Top
local bottom = model.Bottom
local bodyPosition = platform.BodyPosition

while true do
bodyPosition.position = bottom.Position
wait(6)
bodyPosition.position = top.Position
wait(6)
end

When I am in studio It shows no errors. To see what I have for the Elevator go here: web.roblox.com/Testing-Area-place?id=174590350

1 answer

✓ Accepted answer

I'm no expert regarding BodyPositions, but it appears that the problem is that the BodyPosition can't generate enough force to push the brick up. Your script seems sound. My advice would be to raise the maxForce property to a number which can support the brick.

2 comments

0

Omg your answer was so easy to understand and it worked!! Thank you!

0

I'm glad my answer helped! :)

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