Hello, I am trying to create a repeating tweened GUI that stops once you click a text button. But, whenever I try out the script, the tween doesn't stop repeating even though I'm clicking the button. Roblox doesn't give me any errors as well.
This is in a Local Script.
while true do
player.PlayerGui.MainGUI.AimBar.AimStick:TweenPosition(
UDim2.new(0.951, 0, -0.5, 0), -- End Position
"InOut", --EasingDirection
"Sine", --EasingStyle
1, -- Time in seconds
false, -- Override other tweens
nil
)
wait(1.01)
player.PlayerGui.MainGUI.AimBar.AimStick:TweenPosition(
UDim2.new(0.026, 0, -0.5, 0), -- End Position
"InOut", --EasingDirection
"Sine", --EasingStyle
1, -- Time in seconds
false, -- Override other tweens
nil
)
wait(1.01)
if Aimbar.ClickFrame.MouseButton1Up == true then
break
end
end
-- Script Continues

1 comment
THANK YOU SO MUCH!