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

Why will my elevator not work?

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

✓ Accepted answer
  • 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

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.

2 comments

0

This does not work. I hope you relize body is A BodyPosition . And the whole elevator is in an enclosed shaft

0

Ahhh, sorry for not noticing that. I'm gonna try to fix it

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