Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 8 years ago

Please include the code which you are trying to use, so the community will be better-equipped to help you with your problem.

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

0
This is not a requested site. docrobloxman52 407 — 8y
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(). adark 5487 — 8y

Closed as Not Constructive by docrobloxman52, LegitimatlyMe, ChemicalHex, ChipioIndustries, Tigerism, and M39a9am3R

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
Oaktin 35
8 years ago
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

Ad