I want to make a GUI that tweens the rotation. It does work but only once. The GUI is similar to Robeats when a mouse enters the GUI frame.
I got the script from this post awhile ago
The Explorer is like this
Script:
local TweenService = game:GetService("TweenService")
local tween = TweenService:Create(
script.Parent,--whatever should be tweened
TweenInfo.new(1),--how the tween should act
{
Rotation = 5--set rotation to whatever it should be
}
)
local untween = TweenService:Create(
script.Parent,
TweenInfo.new(1),
{
Rotation = -5
}
)
while true do
tween:Play()
wait(1)
untween:Play()
end
local TweenService = game:GetService("TweenService")
local tween = TweenService:Create(
script.Parent,--whatever should be tweened
TweenInfo.new(1),--how the tween should act
{
Rotation = 5--set rotation to whatever it should be
}
)
local untween = TweenService:Create(
script.Parent,
TweenInfo.new(1),
{
Rotation = -5
}
)
while true do
tween:Play()
tween.Completed:Wait() -- this waits for the tween to end
untween:Play()
untween.Completed:Wait()
-- the loop got to this point but resets
end