Hi,
so basically im making a gui element and when the mouse enters it, it is supposed to be tweened to a random rotation for cool effect.
the problem I’m having is that it does it once then runs a lot of tweens at the same time. This slows it down to the point that it doesn’t even seem to be moving…
How do I make it so that it runs another tween with a random position after a tween gets completed?
Thanks
while script.Parent.MouseEnter do
task.wait()
local randomrot = math.random(-5, 5)
local rotti = TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
local rottween = ts:Create(script.Parent, ti, {Rotation = randomrot})
rottween:Play()
repeat task.wait() until rottween.Completed
end