How to make moving UI effect

Hello. I’m trying to UI effect for my game. The same effect like in-game Super Golf

I mean these moving checkers. I know someone made a post asking about it, but the answer was unclear for me. If anyone could help me I would appreciate it

1 Like

you can use TweenService for that

2 Likes

I know, but I don’t know how to use it properly to achieve this effect

1 Like

In more complicated terms you could use Beams.

1 Like

This local script will move a TextButton when clicked

script.Parent.MouseButton1Click:Connect(function() -- this will be a event on click
	script.Parent:TweenPosition(UDim2.new(1,0,0,0)) -- start the movement
	task.wait(1)
	script.Parent:TweenPosition(UDim2.new(0,0,1,0)) -- start the movement
	task.wait(1)
	script.Parent:TweenPosition(UDim2.new(0,1,0,0)) -- start the movement
	task.wait(1)
	script.Parent:TweenPosition(UDim2.new(0,0,0,1)) -- start the movement
end)