My Script:

s = script
g = game.Workspace
Car = s.Parent.Parent.Elevador -- (Elevador is one union)
-------------------------
function onClicked()
Car.BodyVelocity.velocity = Vector3.new(0, 5, 0)
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

once I have touched my button

Output Print:

12:32:56.883 - BodyVelocity is not a valid member of UnionOperation

Help Pls!!!

He who knows it, help me! how to move a union through vectors

2 comments

1

Most likely there is not a body velocity object in the car so it is erroring.

0

Nope.... :/ Dont work