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.
while true do
 script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(.1,.3,.1) 
 wait()
end

1 answer

Log in to vote
0
Answered by 5 years ago

Hello, using TweenService may help you. :)

local TweenService = game:GetService("TweenService")
local TweenSettings = TweenInfo.new(.2, Enum.EasingStyle.Linear, Enum.EasingDirection.In)

local Part = script.Parent
local Tween = TweenService:Create(Part, TweenSettings, {Orientation = Vector3.new(400, 0, 0)})

while true do
    wait()
    Tween:Play()
end
Ad

Answer this question