Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Alright, So I Wanted To Make A GUI That Spins In When They Click It, Is That Possible To Make?

Does Anybody Know How To Make A GUI That Does That? :)

2 comments

0

This is not a requested site.

0

I do, actually. Register a MouseClick callback to a GUI's click events (can't remember what their exact names are) and then set the Rotation at a somewhat slow rate using RenderStepped or wait().

1 answer

✓ Accepted answer
local YourButton = --Add your button location here eg: script.Parent

YourButton.MouseButton1Down:connect(function()
print("The Button has been clicked!")
YourButton.Rotation = 0
	for i=1,359 do
	YourButton.Rotation = YourButton.Rotation + 1
	wait()
	end
end)

What this is doing is adding one to the rotation and it will do it 359 times. At the beginning it is resetting the rotation to 0 so when you click it the button will not be buggy!

Hoped this helped, good luck on your project! -Oaktin

This discussion is preserved as it was. New answers, comments, and votes are closed.