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

How would I make an elevator? [closed]

Asked by 9 years ago

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.

0
PMed you. shayner32 478 — 9y

Closed as Not Constructive by ChipioIndustries, User#5978, alphawolvess, and ChemicalHex

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
GShocked 150
9 years ago

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.

Ad