Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ChatService = game:GetService("Chat")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local RemoteEvent = ReplicatedStorage:WaitForChild("RemoteEvent")
- game.Players.PlayerAdded:Connect(function(Player)
- -- Kick
- Player.Chatted:Connect(function(Message)
- local SplitMessage = Message:split(" ")
- if SplitMessage[1] == "!kick" and Player.Name == "KillerWolfie2112" then
- local NameOfPlayerToWarn = SplitMessage[2]
- local PlayerToWarn = game.Players:FindFirstChild(NameOfPlayerToWarn)
- local Reason = Message:split(NameOfPlayerToWarn)[2]
- PlayerToWarn:Kick("You've Broken The Terms Of This Game :)")
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement