I don't know how to fix this old car flip script

I’ve searched youtube tutorials on how to make this but there all old currently I’m using bodyGyro but I just found out a few days ago that bodygyro is gone…

I LIVE UNDER A ROCK

this is my current script

Flip.OnServerEvent:Connect(function(plr, cart)
	local bodyGyro = Instance.new("BodyGyro")
	bodyGyro.Parent = seat
	game:GetService("Debris"):AddItem(bodyGyro, 1)
end)

its pretty simple but Its bad code because its old :flushed:

Your script is trying to add the body gyro to a variable you named “seat”, but since you never assigned anything to the variable “seat”, it tries to put the body gyro into nil. Try this script.

Flip.OnServerEvent:Connect(function(plr, seat)
	local bodyGyro = Instance.new("BodyGyro")
	bodyGyro.Parent = seat
	game:GetService("Debris"):AddItem(bodyGyro, 1)
end)```

oh no the script works fine and allno errors nothing the thing is I just found out that bodygyro is bad to use now and im looking for an alternitive

Maybe try this BasePart:ApplyAngularImpulse?

1 Like

It has been superseded by AlignOrientation:

https://developer.roblox.com/en-us/api-reference/class/AlignOrientation