Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to modify rotation speed of a part?

Asked by 5 years ago
Edited by User#5423 5 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.
1while true do
2 script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(.1,.3,.1)
3 wait()
4end

1 answer

Log in to vote
0
Answered by 5 years ago

Hello, using TweenService may help you. :)

01local TweenService = game:GetService("TweenService")
02local TweenSettings = TweenInfo.new(.2, Enum.EasingStyle.Linear, Enum.EasingDirection.In)
03 
04local Part = script.Parent
05local Tween = TweenService:Create(Part, TweenSettings, {Orientation = Vector3.new(400, 0, 0)})
06 
07while true do
08    wait()
09    Tween:Play()
10end
Ad

Answer this question