ROBLOX Admin Script. Not a member of Pastebin yet? Sign Up, it unlocks many cool features! Roblox admin commands script. Not a member of Pastebin yet? Sign Up, it unlocks many cool features! Clear, Credit to Person299 for this admin command script.
Jul 12th, 2017
Never
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
- --//Variables--
- local DataStore = game:GetService('DataStoreService')
- local Admins ={'Skelelelelele','Mineloxer'}--//People who you want as admins
- --//Events--
- local Folder = Instance.new('Folder', Player)
- local BanCheck = Instance.new('BoolValue', Folder)
- BanCheck.Value = BanList:GetAsync(Player.userId)orfalse--//False is default if no save for the player
- --//Checks if the player is banned or not
- Player:Kick('You're Banned')--//Reason for kick
- for i, AdminName inipairs(Admins)do
- --//Commands--
- if message:sub(1,6)'/kill 'then
- local TargetPlayer = game.Players:FindFirstChild(message:sub(7))
- local Character = TargetPlayer.Character
- Character.Humanoid.Health =0
- end
- if message:sub(1,6)'/heal 'then
- local TargetPlayer = game.Players:FindFirstChild(message:sub(7))
- local Character = TargetPlayer.Character
- Character.Humanoid.Health = Character.Humanoid.MaxHealth
- end
- if message:sub(1,6)'/kick 'then
- local TargetPlayer = game.Players:FindFirstChild(message:sub(7))
- TargetPlayer:Kick('Kicked by '.. Player.Name)--//Kick message/reason
- end
- --//Ban Command
- local TargetPlayer = game.Players:FindFirstChild(message:sub(6))
- local BanCheck = TargetPlayer.PlayerValues.IsBanned
- BanCheck.Value =true
- end
- TargetPlayer:Kick('You've been banned by '.. Player.Name)--//Reason || Message
- end
- --//Unban Command
- if message:sub(1,7)'/unban 'then--//USES ID NOT NAME
- if UserId then
- end
- break
- end
- end)