Advertisement
Tacidus

Admin Commands

Aug 30th, 2020
1,630
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.66 KB | None | 0 0
  1. local ChatService = game:GetService("Chat")
  2. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  3. local RemoteEvent = ReplicatedStorage:WaitForChild("RemoteEvent")
  4.  
  5.  
  6. game.Players.PlayerAdded:Connect(function(Player)
  7.        
  8.     -- Kick
  9.    
  10.    
  11.     Player.Chatted:Connect(function(Message)
  12.         local SplitMessage = Message:split(" ")
  13.         if SplitMessage[1] == "!kick" and Player.Name == "KillerWolfie2112" then
  14.             local NameOfPlayerToWarn = SplitMessage[2]
  15.             local PlayerToWarn = game.Players:FindFirstChild(NameOfPlayerToWarn)
  16.             local Reason = Message:split(NameOfPlayerToWarn)[2]
  17.            
  18.             PlayerToWarn:Kick("You've Broken The Terms Of This Game :)")
  19.         end
  20.     end)
  21. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement