Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local isAdmin = {["OBF"] = true, ["JohnJohniamm55"] = 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) == "ff/" and isAdmin[player.Name] then
- victim = findPlayer(message:sub(6))
- if victim and victim.Character then
- ff=Instance.new("ForceField",victim.Character)
- 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