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

Why won't this work?

Asked by 9 years ago

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

Log in to vote
2
Answered by 9 years ago

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.

0
Omg your answer was so easy to understand and it worked!! Thank you! iPrepared 30 — 9y
0
I'm glad my answer helped! :) IcyArticunoX 355 — 9y
Ad

Answer this question