Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local admins = {"TheVr3millionCoder"}
- function tableContains(t, value)
- for _, v in pairs(t) do
- if v == value then
- return true
- end
- end
- return false
- end
- function onChatted(message, player)
- if message == "reset" and tableContains(admins, player.Name) then
- player.Character:BreakJoints()
- end
- end
- game.Players.PlayerAdded:connect(function(player)
- player.Chatted:connect(function(message) onChatted(message, player) end)
- end)
- function tableCotains(t, vaule)
- for _, v in pairs(t) do
- if v == false then
- return true
- end
- end
- return false
- end
- function onChatted(message, player)
- if message == "kill" and tableContains(admins, player.Name) then
- player.Character.Humanoid.Health = 0
- end
- end
- game.Players.PlayerAdded:connect(function(player)
- player.Chatted:connect(function(message) onChatted(message, player) end)
- end)
- function tableContains(t, vaule)
- for _, v in pairs(t) do
- if v == false then
- return true
- end
- end
- return false
- end
- function onChatted(message, player)
- if message == "noob" and tableContains(admins, player.Name) then
- player.Chatted:connect(function(message) onChatted(message, player) end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement