How to delay a TweenPosition ( GUI )

So, basically, I want to delay my TweenPosition around one second each time. Currently I just remade my script from previous times.

Circle.MouseEnter:Connect(function()
	while true do
		wait(1)
		script.Parent.MovingCircle:TweenPosition(
			UDim2.new(Randomzier:NextNumber(0, 0.962),0 ,Randomzier:NextNumber(0, 0.285),0),
			Enum.EasingDirection.Out,
			Enum.EasingStyle.Linear,
			5,
			false,
			nil
			
		)
		TW:Pause(1)
	end
		
	
end)

mylil = Circle.MouseLeave:Connect(function()
	
	GUIS.Enabled = false
	
end)

(Side topic, if you wanna answer, would this be better done in a module since I’m using this as a form of progression in a game?)

1 Like

You can define a number that increases everytime they click it, by one second everytime.

How would I define it to make it where the number actually stops the script for a second? Would I just use the Wait() function?

Why would you want to stop the script in the first place?
I don’t get your logic at the moment, please elaborate.

At the moment, the ball I have just moves constantly. What I want it to do instead is wait a second or two so I can update the value for the progression, then have it move again.

Do you mean something like:

And then you could use

tween:Stop()
tween:Play()

to your liking?

Yeah, that’s what I was trying, but I wasn’t sure if I put the same function in a variable and use it for both the tween info and property table. I fixed it nevertheless, my wait was just acting weird in the moment.