Advertisement
4zx16

Kick Gui (Confirm)

Nov 21st, 2021 (edited)
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. --[[
  2.  || πŸ“œ AUTHOR: @4zx16 || CONFIRM KICK || DO NOT MESS WITH THIS SCRIPT OR U WILL BREAK IT
  3. ]]
  4. local function ConfirmAction()
  5.     local DisplayedName = script.Parent.Parent.Username.Text
  6.     local ReasonNotice = script.Parent.Parent.Reason.Text
  7.  
  8.     if game:GetService("Players"):FindFirstChild(DisplayedName) then
  9.         game:GetService("ReplicatedStorage").KickAction:FireServer(DisplayedName, ReasonNotice)
  10.     end
  11. end
  12. script.Parent.MouseButton1Click:Connect(ConfirmAction)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement