Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local isAdmin = {["Control22"] = true, ["ArceusInator"] = true, ["amanda12895"] = true}
- function findPlayer(name)
- for _, player in ipairs(game.Players:GetPlayers()) do
- if player.Name:lower() == name:lower() then
- return player
- end
- end
- end
- function onChatted(message, player)
- if message:sub(1, 5) == "kill/" and isAdmin[player.Name] then
- victim = findPlayer(message:sub(6))
- if victim and victim.Character then
- victim.Character:BreakJoints()
- end
- end
- end
- game.Players.PlayerAdded:connect(function(player)
- player.Chatted:connect(function(message) onChatted(message, player) end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement