while wait() do
script.Parent.Rotation = script.Parent.Rotation + 1
if script.Parent.Rotation == 360 then
script.Parent.Rotation = 0
end
end
I want wheel only 1 time
while wait() do
script.Parent.Rotation = script.Parent.Rotation + 1
if script.Parent.Rotation == 360 then
script.Parent.Rotation = 0
end
end
I want wheel only 1 time
local object = script.Parent
while object.Rotation < 360 do -- the maximum rotation the code within the do -- end block will run with will be ~ 359, but within it you can increment it to 360 without having to evaluate a condition again
object.Rotation += 1
wait()
end
Thx bro, leather I try, now I busy sorry
Hi bro, you want help me in my project if you want talk me in discord and then I send you my group THE S̶L̶A̶Y̶E̶R#3268
It not work, I make other script
What exactly are you trying to achieve?
Not sure what you mean by that, since it does work.
Use a LocalScript under the Gui object and rotate it from there.
Alternatively you could just tween its rotation:
local TweenService = game:GetService("TweenService")
local object = script.Parent
local tweenTime = 4
local tween = TweenService:Create(object, TweenInfo.new(tweenTime), {Rotation = 360})
tween:Play()
Tomorrow I go to try, today I busy