RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a spinner gui"
-- local script for a spinner GUI local player = game.Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = Instance.new("ScreenGui", playerGui) local spinButton = Instance.new("TextButton", screenGui) spinButton.Size = UDim2.new(0, 200, 0, 50) spinButton.Position = UDim2.new(0.5, -100, 0.5, -25) spinButton.Text = "Spin" local spinning = false spinButton.MouseButton1Click:Connect(function() if not spinning then spinning = true spinButton.Text = "Spinning..." -- Add your spinning animation code here wait(2) -- simulate spinning time spinning = false spinButton.Text = "Spin" end end)