Advertisement
Karstenf2

Untitled

Jul 2nd, 2021
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. local adminIDs = {84182809}
  2.  
  3.  
  4. game.Players.PlayerAdded:Connect(function(plr)
  5.  
  6. if table.find(adminIDs, plr.UserId) then
  7.  
  8.  
  9. plr.CharacterAdded:Connect(function()
  10. wait()
  11. script.AdminGui:Clone().Parent = plr:WaitForChild("PlayerGui")
  12. end)
  13. end
  14. end)
  15.  
  16.  
  17.  
  18. game.ReplicatedStorage.AdminClicked.OnServerEvent:Connect(function(admin, plrChosen, buttonChosen)
  19.  
  20.  
  21. if not plrChosen or not buttonChosen or not table.find(adminIDs, admin.UserId) then return end
  22.  
  23.  
  24. if buttonChosen == "Kill" then
  25.  
  26. if plrChosen.Character and plrChosen.Character:FindFirstChild("Humanoid") then
  27.  
  28. plrChosen.Character.Humanoid.Health = 0
  29. end
  30.  
  31.  
  32. elseif buttonChosen == "Kick" then
  33.  
  34. plrChosen:Kick()
  35.  
  36.  
  37. elseif buttonChosen == "Bring" and plrChosen.Character and admin.Character then
  38.  
  39. plrChosen.Character.HumanoidRootPart.CFrame = admin.Character.HumanoidRootPart.CFrame + Vector3.new(0, 10, 0)
  40.  
  41.  
  42. elseif buttonChosen == "TeleportTo" and plrChosen.Character and admin.Character then
  43.  
  44. admin.Character.HumanoidRootPart.CFrame = plrChosen.Character.HumanoidRootPart.CFrame + Vector3.new(0, 10, 0)
  45. end
  46. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement