4zx16

Shutdown On Click

Jul 17th, 2021 (edited)
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2.  
  3. script.Parent.MouseButton1Click:Connect(function()
  4.    
  5.     for i, Players in pairs(game.Players:GetPlayers()) do
  6.         local function Shutdown()
  7.             Players:Kick("Requested Shutdown via ".. Player.Name)
  8.         end
  9.         Shutdown()
  10.     end
  11. end)
Advertisement
Add Comment
Please, Sign In to add comment