if there a way i could rotate a car with a script. so basically if the car was upside down and players had a gui so if they clicked the gui it will rotate the car and rotate it so it is on its wheels and driveable again. i made a script to make it kinda move a little bit into the air if it gets stuck but how can i make it rotate if its upside down?
local ting = 0
function onclick()
if ting == 0 then
ting = 1
local carseat = script.Parent.Parent.CarSeat.Value
local car = carseat.Parent.Parent
car:TranslateBy(Vector3.new(0,15,0))
wait(0.2)
ting = 0
end
end

2 comments
doesnt flip the car if it is upside down
Are you calling the function? Try increasing the "P" value.