Im not asking you to make it for me. im asking you for help. i did the following code for example
example : car1 example 2 : vector 3 : 0,2,0
`s = script g = game.Workspace
function onClicked() Car.BodyVelocity.velocity = Vector3.new(0, -3, 0) end script.Parent.ClickDetector.MouseClick:connect(onClicked)
there's one thing i put for down. but the problem is. do i use weld for this. to prevent it from breaking apart? or. atleast give me a site to were i can find out how to do it effeciently. help me here! please. `
Use bodyPosition to move it to a position, generally you have invisible markers at the floor, and you can put their position in a bodyPosition , which will cause it to move to the floor.
If using multiple parts, you should either use a weld script to weld it all together, or the weld surface type when building.
s = script g = game.Workspace Car = s.Parent.Parent function onClicked() Car.BodyPosition.position = Car.Position + Vector3.new(0,3,0) end script.Parent.Parent.CD.MouseClick:connect(onClicked)
The above code will work, assuming you have the required BodyPosition.
It will move the Car up 3 from its original position.
Also, increase the maxforce of the BodyPosition, i used 40000
You will probably want a BodyGyro in there to keep Car stable, make sure to include the maxforce of Y in it.
You can from here add buttons to control the elevator up or down, or add floors. If you have for example an invisible marker at Floor one you can change
Car.BodyPosition.position = Car.Position + Vector3.new(0,3,0)
to
Car.BodyPosition.position = FloorOneMarker.Position
Why do you need a car if you are making an elevetor?
If you want to make an elevator I recommend using a for loop and CFrame.