Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer
- local debounce = false
- local switch = script.Parent.Round
- local function toggle()
- if debounce == true then
- debounce = false
- switch:TweenPosition(UDim2.new(0.339, 0, 0.5, 0), "Out", "Quart", 1, true)
- switch.ImageColor3 = Color3.fromRGB(255, 0, 0)
- pcall(function()
- game.StarterGui:SetCore("TopbarEnabled", true)
- end)
- elseif debounce == false then
- debounce = true
- switch:TweenPosition(UDim2.new(1.179, 0, 0.5, 0), "Out", "Quart", 1, true)
- switch.ImageColor3 = Color3.fromRGB(35, 255, 68)
- pcall(function()
- game.StarterGui:SetCore("TopbarEnabled", false)
- end)
- end
- end
- script.Parent.MouseButton1Click:Connect(toggle)
- script.Parent.Parent.MouseButton1Click:Connect(toggle)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement