I was playing around with ROBLOX scripting and stuff so I decided to make an elevator, I copied the exact script in another model's elevator to make mine with the same things, yet the elevator wont work, can someone tell me how to fix this?
So I named the part that goes up and down, "Car1".
My Up script is:
s = script
g = game.Workspace
Car = s.Parent.Parent.Car1
-------------------------
function Clickit()
Car.BodyVelocity.velocity = Vector3.new(0, 3, 0)
end
script.Parent.ClickDetector.MouseClick:connect(Clickit)
My Down script is:
s = script
g = game.Workspace
Car = s.Parent.Parent.Car1
-------------------------
function Clickit()
Car.BodyVelocity.velocity = Vector3.new(0, -3, 0)
end
script.Parent.ClickDetector.MouseClick:connect(Clickit)
My stop script is:
s = script
g = game.Workspace
Car = s.Parent.Parent.Car1
-------------------------
function Clickit()
Car.BodyVelocity.velocity = Vector3.new(0, 0, 0)
end
script.Parent.ClickDetector.MouseClick:connect(Clickit)
|