Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = script.Parent.Parent.Parent.Parent
- Player.Chatted:Connect(function(input)
- --Variables--
- local total = #input
- --Script Variables--
- local reset = string.lower(input:sub(1,5))
- local commands = string.lower(input:sub(1,8))
- local watermark = string.lower(input:sub(1,9))
- local kick = string.lower(input:sub(1,4))
- local ban = string.lower(input:sub(1,3))
- local unban = string.lower(input:sub(1,5))
- local kill = string.lower(input:sub(1,4))
- local admin = string.lower(input:sub(1,5))
- local unadmin = string.lower(input:sub(1,7))
- local executor = string.lower(input:sub(1,8))
- --start
- if reset == 'reset' then
- local victim = game.Players[input:sub(7,total)]
- local currentpos = game.Workspace[victim.Name].Torso.CFrame
- victim:LoadCharacter()
- game.Workspace[victim.Name].Torso.CFrame = currentpos
- elseif commands == 'commands' then
- local cmdremote = script.Parent.Parent.Commands.Open:FireClient(Player)
- elseif watermark == 'watermark' then
- local endprefix = string.lower(input:sub(11,total))
- if endprefix == 'on' then
- script.Parent.Parent.Watermark.Open:FireClient(Player)
- elseif endprefix == 'off' then
- script.Parent.Parent.Watermark.Close:FireClient(Player)
- end
- elseif kick == 'kick' then
- local victim = game.Players[input:sub(6,total)]
- victim:Kick('Kicked from Server by '..Player.Name)
- elseif ban == 'ban' then
- local victim = game.Players[input:sub(5,total)]
- if victim:IsInGroup(5016852) then
- local no
- else
- local banval = Instance.new('SelectionBox')
- banval.Parent = game.ReplicatedStorage
- banval.Name = victim.Name
- victim:Kick('Banned!')
- game.Players.PlayerAdded:Connect(function(play)
- for i,v in pairs(game.ReplicatedStorage:GetChildren()) do
- if v.Name == play.Name then
- play:Kick('Banned')
- end
- end
- end)
- end
- elseif unban == 'unban' then
- local unbanname = input:sub(7,total)
- for i,v in pairs(game.ReplicatedStorage:GetChildren()) do
- if v.Name == unbanname then
- v:Destroy()
- break
- end
- end
- elseif kill == 'kill' then
- local victim = game.Players[input:sub(6,total)]
- if victim:IsInGroup(5016852) then
- local no
- else
- game.Workspace[victim.Name].Humanoid.Health = game.Workspace[victim.Name].Humanoid.Health - 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
- end
- elseif admin == 'admin' then
- local victim = game.Players[input:sub(7,total)]
- if victim:IsInGroup(5016852) then
- local no
- else
- local gui = script.Parent.Parent:Clone()
- gui.Parent = victim.PlayerGui
- end
- elseif unadmin == 'unadmin' then
- local victim = game.Players[input:sub(9,total)]
- if victim:IsInGroup(5016852) then
- local no
- else
- if victim.PlayerGui:FindFirstChild('draconic') then
- victim.PlayerGui.draconic:Destroy()
- end
- end
- elseif executor == 'executor' then
- script.Parent.Parent.Executor.Open:FireClient(Player)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment