Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Command = {":shutdown", "!shutdown"}
- game.Players.PlayerAdded:Connect(function(player)
- player.Chatted:Connect(function(msg)
- for i, v in pairs(Command) do
- if msg:sub(1, v:len()):lower() == v:lower() then
- wait(1)
- for i, ShutdownExperience in pairs(game.Players:GetPlayers()) do
- ShutdownExperience:Kick("[Experience Shutdown]: requested by ".. player.Name)
- end
- end
- end
- end)
- end)
- local Command = {":shutdown", "!shutdown"}
- local Admins = {}
- game.Players.PlayerAdded:Connect(function(player)
- player.Chatted:Connect(function(msg)
- for i, Allowed in pairs(Admins) do
- if player.Name or player.UserId == Allowed then
- for i, v in pairs(Command) do
- if msg:sub(1, v:len()):lower() == v:lower() then
- wait(1)
- for i, Experience in pairs(game.Players:GetPlayers()) do
- Experience:Kick("[Experience Shutdown]: requested by ".. player.Name)
- end
- end
- end
- end
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment