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

How would I make an elevator?

I have been trying to make an elevator in my place Otmas Industries Computer Core(http://web.roblox.com/games/300320560/Otmas-Industries-Computer-Core) to the surface above. The elevator-in-progress is behind the "Under Construction" door near the spawn. I already have the model built, I just need the script. If you need to access the elevator, PM me and I will remove it when you are online.

1 comment

0

PMed you.

1 answer

This isn't a request site, but I'll outline the basic idea you might want to try:

function move(goingup)
	if goingup == true then
		loop
			AllElevatorParts = ElevatorModel.AllTheParts.Position
			AllElevatorParts = AllElevatorParts + Vector3.new(0, 0, 0, 1)
		end
	else
		loop
			AllElevatorParts = ElevatorModel.AllTheParts.Position
			AllElevatorParts = AllElevatorParts + Vector3.new(0, 0, 0, -1)
		end
	end
end

Then MouseButton1Click:connect(move(true))

That is all wrong syntax, but its just a basic script outline to make functional.

So it basically changes the position of all the parts, although I think BodyVelocity or BodyForce or something might help.

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