Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- command script, this only supports commands that don't affect a player, or have a value needed
- local admins = {
- ["R0bustic"] = true -- do not put your name here, it gets automatically done
- }
- local prefix = ":/"
- game.Players.PlayerAdded:connect(function(p)
- if admins[p.Name] or p.UserId == game.OwnerId then
- p.Chatted:connect(function(msg)
- local leng = prefix:len()
- if msg:sub(1,leng) == prefix then
- local c = msg:sub(leng + 1):lower()
- if c == "killall" then -- make your commands all lowercase
- -- this is your code v
- local a = game.Players:GetChildren()
- for _,v in pairs (a) do
- if a.Character then
- a.Character:BreakJoints()
- end
- end
- -- this is your code ^
- end
- if c == "reset" then
- if p.Character then
- p.Character:BreakJoints()
- end
- end
- end
- end)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement