Hey!
Ok so here's what I been trying to do. I have a model named "Bridge1" and I have a brick where when you click it, it makes the brige go either up or down depending on what button you press. My problem is of course it's not working. All the bricks in the model do have a BodyGyro and BodyVelocity in it.
Here is the script for the down button.
s = script
g = game.Workspace
Car = s.Parent.Parent.Bridge1
-------------------------
function onClicked()
Car.BodyVelocity.velocity = Vector3.new(0, -5, 0)
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
Please let me know what I did wrong, thank you! |