Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

CFrame Rotating Script For Model Help?

What do I add to this script to make the model rotate? I am trying to make a boat that auto drives and so far I have made a script that moves the boat forward but how do I make it do a 90 degree turn?

s = script
g = game.Workspace
Car = s.Parent.Parent.Car1
-------------------------
wait(0)
Car.BodyVelocity.velocity = Vector3.new(-5,0,0)
wait(10) 
Car.BodyVelocity.velocity = Vector3.new(0,0,0)
wait(0.1)

1 answer

✓ Accepted answer

In order to rotate the CFrame of an entire model you use :SetPrimaryPartCFrame(), however in this case you'll probably benefit more from using BodyGyro or BodyAngularVelocity.

This discussion is preserved as it was. New answers, comments, and votes are closed.