Hello, I am trying to create a repeating tweened GUI that stops once you click a GUI text button. But, whenever I try out the script, the tween does not play and stops the rest of the script.
This is the Local Script
Aimbar.ClickFrame.MouseButton1Up = true
repeat
player.PlayerGui.Screen.AimBar.AimStick:TweenPosition(
UDim2.new(0.951, 0, -0.5, 0),
"InOut",
"Sine",
1,
false,
nil
)
wait(1.01)
player.PlayerGui.ScreenGUI.AimBar.AimStick:TweenPosition(
UDim2.new(0.026, 0, -0.5, 0),
"InOut",
"Sine",
1,
false,
nil
)
wait(1.01)
until Aimbar.ClickFrame.MouseButton1Up == true
