1 | while true do |
2 | script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(. 1 ,. 3 ,. 1 ) |
3 | wait() |
4 | end |
Hello, using TweenService may help you. :)
01 | local TweenService = game:GetService( "TweenService" ) |
02 | local TweenSettings = TweenInfo.new(. 2 , Enum.EasingStyle.Linear, Enum.EasingDirection.In) |
03 |
04 | local Part = script.Parent |
05 | local Tween = TweenService:Create(Part, TweenSettings, { Orientation = Vector 3. new( 400 , 0 , 0 ) } ) |
06 |
07 | while true do |
08 | wait() |
09 | Tween:Play() |
10 | end |