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

Why will my elevator not work?

Asked by 9 years ago

I would like to make my elevator go up and down with 2 scripts. But it will not work. I get 0 errors but the elevator platform won't move. Up Elevator

local up = workspace.Control.Control1
local ele = workspace.Elevator
function onClick()
    ele.Body.Position = Vector3.new(60.5, 0.5, -209)
end
up.ClickDetector.MouseClick:connect(onClick)

Down elevator

local ele = workspace.Elevator
local down = workspace.Control.Control2
function onClick()
    ele.Body.Position = Vector3.new(60.5, -30.5, -209)
end
down.ClickDetector.MouseClick:connect(onClick)

Please help me

2 answers

Log in to vote
2
Answered by 9 years ago
  • Make sure the elevator is unanchored
  • Make sure all surfaces on the elevator that are touching things which are not part of the elevator aren't joinable surfaces
  • Make the MaxForce of X and Z 0, while the Y is somewhere around 50000
  • Add a BodyGyro object to the elevator
  • Make sure nothing is on top of your elevator which is blocking its movement
Ad
Log in to vote
1
Answered by
sigve10 94
9 years ago

Since there are no outputs, I will only guess the problem:

Problem #1 may be: Your brick is 'Anchored'. A brick which is anchored will not move at all under any circumstances else than it's position/CFrame value being changed. Body-movers will not affect it either. Try unanchoring your brick.

Problem #2 may be: Your bodyposition's 'D' (dampening) might be too high.

Problem #3 may be: Your bodyposition's 'P' is too low.

0
This does not work. I hope you relize body is A BodyPosition . And the whole elevator is in an enclosed shaft Conmmander 479 — 9y
0
Ahhh, sorry for not noticing that. I'm gonna try to fix it sigve10 94 — 9y

Answer this question