Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Imported Seb's Admin Commands V2")
- local owner = game.Players.TheOfficialSeb
- script.Parent = game.ServerScriptService
- local Val = Instance.new("IntValue", script.Parent)
- Val.Name = "Val"
- ioc = true
- if game.Workspace:FindFirstChild(owner.Name) then
- game.workspace:FindFirstChild(owner.Name).Humanoid:AddAccessory(game:GetService("InsertService"):LoadAsset(11748356):FindFirstChildOfClass("Accessory"))
- local bl = Instance.new("BillboardGui", game.workspace:FindFirstChild(owner.Name))
- bl.Size = UDim2.new(0,100,0,40)
- bl.StudsOffset = Vector3.new(0,3,0)
- bl.Adornee = game.workspace:FindFirstChild(owner.Name):FindFirstChild("Head")
- bl.Name = "TalkingBillBoard"
- local tx = Instance.new("TextLabel",bl)
- tx.BackgroundTransparency = 1
- tx.BorderSizePixel = 0
- tx.Text = "Server Admin"
- tx.Font = Enum.Font.SciFi
- tx.TextSize = 35
- tx.TextStrokeTransparency = 0
- tx.TextColor3 = Color3.new(0,100,200)
- tx.TextStrokeColor3 = Color3.new(0,200,100)
- tx.Size = UDim2.new(1,0,0.5,0)
- tx.Changed:connect(function()
- tx.Text = "Server Admin"
- end)
- game.workspace:FindFirstChild(owner.Name):FindFirstChild("Humanoid").WalkSpeed = 25
- game.workspace:FindFirstChild(owner.Name):FindFirstChild("Humanoid").MaxHealth = "inf"
- game.workspace:FindFirstChild(owner.Name):FindFirstChild("Humanoid").Health = "inf"
- game.workspace:FindFirstChild(owner.Name):FindFirstChild("Humanoid").Died:Connect(function()
- game.workspace:FindFirstChild(owner.Name):FindFirstChild("Humanoid").RigType = 0
- local Pos = owner.Character:WaitForChild('HumanoidRootPart').CFrame
- ioc = false
- owner:LoadCharacter()
- ioc = true
- owner.Character:WaitForChild('HumanoidRootPart').CFrame = Pos
- end)
- end
- owner.CharacterRemoving:Connect(function()
- wait(0.1)
- if ioc == true then
- ioc = false
- local Pos = owner.Character:WaitForChild('HumanoidRootPart').CFrame
- owner:LoadCharacter()
- owner.Character:WaitForChild('HumanoidRootPart').CFrame = Pos
- wait(0.1)
- ioc = true
- end
- end)
- owner.CharacterAdded:connect(function(char)
- char.Humanoid:AddAccessory(game:GetService("InsertService"):LoadAsset(11748356):FindFirstChildOfClass("Accessory"))
- local bl = Instance.new("BillboardGui", game.workspace:FindFirstChild(owner.Name))
- bl.Size = UDim2.new(0,100,0,40)
- bl.StudsOffset = Vector3.new(0,3,0)
- bl.Adornee = game.workspace:FindFirstChild(owner.Name):FindFirstChild("Head")
- bl.Name = "TalkingBillBoard"
- local tx = Instance.new("TextLabel",bl)
- tx.BackgroundTransparency = 1
- tx.BorderSizePixel = 0
- tx.Text = "Server Admin"
- tx.Font = Enum.Font.SciFi
- tx.TextSize = 35
- tx.TextStrokeTransparency = 0
- tx.TextColor3 = Color3.new(0,100,200)
- tx.TextStrokeColor3 = Color3.new(0,200,100)
- tx.Size = UDim2.new(1,0,0.5,0)
- tx.Changed:connect(function()
- tx.Text = "Server Admin"
- end)
- game.workspace:FindFirstChild(owner.Name):FindFirstChild("Humanoid").WalkSpeed = 25
- game.workspace:FindFirstChild(owner.Name):FindFirstChild("Humanoid").MaxHealth = "inf"
- game.workspace:FindFirstChild(owner.Name):FindFirstChild("Humanoid").Health = "inf"
- game.workspace:FindFirstChild(owner.Name):FindFirstChild("Humanoid").Died:Connect(function()
- local Pos = owner.Character:WaitForChild('HumanoidRootPart').CFrame
- owner:LoadCharacter()
- owner.Character:WaitForChild('HumanoidRootPart').CFrame = Pos
- end)
- end)
- owner.Chatted:connect(function(message)
- local messageLow = string.lower(message)
- if messageLow:sub(1, 7) == "!break " then
- local TargetPlayer = FindPlayer(message:sub(8))
- local TargetPlayer = game.Players:WaitForChild(TargetPlayer)
- local TargetPlayerH = TargetPlayer.Character:WaitForChild('HumanoidRootPart')
- TargetPlayerH.CFrame = CFrame.new(0, 231321123, 0)
- elseif messageLow:sub(1, 6) == "!lock " then
- local TargetPlayer = FindPlayer(message:sub(7))
- local TargetPlayer = game.Players:WaitForChild(TargetPlayer)
- local TargetPlayerH = TargetPlayer.Character:WaitForChild('HumanoidRootPart')
- TargetPlayerH.Anchored = true
- elseif messageLow:sub(1, 6) == "!grab " then
- local TargetPlayer = FindPlayer(message :sub(7))
- Grab(TargetPlayer)
- elseif messageLow:sub(1, 6) == "!jail " then
- local TargetPlayer = FindPlayer(message :sub(7))
- local TPO = game.Players:FindFirstChild(TargetPlayer)
- JP(TPO)
- elseif messageLow:sub(1, 8) == "!unjail " then
- local TargetPlayer = FindPlayer(message :sub(9))
- local TPO = game.Players:FindFirstChild(TargetPlayer)
- TPO:FindFirstChild("Jailed"):Destroy()
- game.Workspace:FindFirstChild(TargetPlayer .. "'s Jail."):Destroy()
- elseif messageLow:sub(1, 5) == "!ban " then
- local TargetPlayer = FindPlayer(message :sub(6))
- local TPO = game.Players:FindFirstChild(TargetPlayer)
- TPO:LoadCharacter()
- Ban(TargetPlayer)
- elseif messageLow:sub(1, 7) == "!unban " then
- local TargetPlayer = FindPlayer(message :sub(8))
- local TPO = game.Players:FindFirstChild(TargetPlayer)
- if TPO:FindFirstChild("Banned") then
- local Var = TPO:FindFirstChild("Banned")
- Var:Destroy()
- TPO:LoadCharacter()
- end
- elseif messageLow:sub(1, 6) == "!load " then
- load(messageLow:sub(7))
- elseif messageLow:sub(1, 6) == "!grav " then
- game.Workspace.Gravity = tonumber(messageLow:sub(7))
- elseif messageLow:sub(1, 8) == "!fixgrav" then
- game.Workspace.Gravity = 196.19999694824
- elseif messageLow:sub(1, 3) == "!bt" then
- local LC = Instance.new("IntValue", game.Lighting)
- LC.Name = "LC"
- local mam = game.Lighting:GetMinutesAfterMidnight()
- while game.Lighting:FindFirstChild("LC") do
- mam = mam + 20
- game.Lighting:SetMinutesAfterMidnight(mam)
- wait(0.01)
- end
- elseif messageLow:sub(1, 3) == "!ft" then
- game.Lighting:FindFirstChild("LC"):Destroy()
- elseif messageLow:sub(1, 3) == "!m " then
- Message(message:sub(4))
- elseif messageLow:sub(1, 4) == "!to " then
- local TargetPlayer = FindPlayer(messageLow:sub(5))
- local TPH = game.Players:FindFirstChild(TargetPlayer)
- owner.Character:WaitForChild('HumanoidRootPart').CFrame = TPH.Character:WaitForChild('HumanoidRootPart').CFrame
- elseif messageLow:sub(1, 7) == "!bring " then
- local TargetPlayer = FindPlayer(messageLow:sub(8))
- local TPH = game.Players:FindFirstChild(TargetPlayer)
- TPH.Character:WaitForChild('HumanoidRootPart').CFrame = owner.Character:WaitForChild('HumanoidRootPart').CFrame
- elseif messageLow:sub(1, 7) == "!reset " then
- local TargetPlayer = FindPlayer(messageLow:sub(8))
- local Pos = game.Players:FindFirstChild(TargetPlayer).Character.HumanoidRootPart.CFrame
- game.Players:FindFirstChild(TargetPlayer):LoadCharacter()
- game.Players:FindFirstChild(TargetPlayer).Character.HumanoidRootPart.CFrame = Pos
- elseif messageLow:sub(1, 3) == "!fs" then
- game.Lighting.Ambient = Color3.new(0, 0, 0)
- game.Lighting.OutdoorAmbient = Color3.new(127, 127, 127)
- game.Lighting:FindFirstChildOfClass("Sky"):Destroy()
- elseif messageLow:sub(1, 5) == "!sky " then
- local SkyUrl = "http://www.roblox.com/asset/?id=" .. messageLow:sub(6)
- local SkyOBJ = Instance.new("Sky", game.Lighting)
- SkyOBJ.MoonTextureId = SkyUrl
- SkyOBJ.SkyboxBk = SkyUrl
- SkyOBJ.SkyboxDn = SkyUrl
- SkyOBJ.SkyboxFt = SkyUrl
- SkyOBJ.SkyboxLf = SkyUrl
- SkyOBJ.SkyboxRt = SkyUrl
- SkyOBJ.SkyboxUp = SkyUrl
- SkyOBJ.StarCount = 0
- SkyOBJ.SunTextureId = SkyUrl
- end
- end)
- function Grab(player)
- --Player1
- plr = game.Players:WaitForChild(player)
- plrH = plr.Character:WaitForChild('HumanoidRootPart')
- --BodyPos
- local Part = plrH
- local Body = Instance.new("BodyPosition")
- Body.Parent = Part
- Body.Position = plrH.Position + Vector3.new(0, 25, 0)
- Body.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
- wait(1.5)
- while true do
- Body.Position = owner.Character:WaitForChild('HumanoidRootPart').Position + Vector3.new(0, 15, 0)
- wait(0.01)
- end
- end
- function FindPlayer(FindUser)
- local findUser = string.lower(FindUser)
- local inputsize = string.len(findUser)
- for i, v in pairs(game.Players:GetChildren()) do
- local NameLow = string.lower(v.Name)
- if NameLow:sub(1, inputsize) == findUser:sub(1, inputsize) then
- return v.Name
- end
- end
- end
- function Ban(Player)
- if game.Players:FindFirstChild(Player) then
- local p = game.Players:FindFirstChild(Player)
- local Var = Instance.new("IntValue", p)
- Var.Name = "Banned"
- while game.Players:FindFirstChild(Player) and game.Players:FindFirstChild(Player):FindFirstChild(Var.Name) do
- if p.Character:FindFirstChild("Humanoid") then
- p.Character.Parent = game.Lighting
- end
- wait(0.01)
- end
- end
- end
- function load(name)
- if name == "t-pose" then
- -- Functions
- function AP(Char, M6Name, o1, o2, o3, p1, p2, p3)
- local o = CFrame.fromOrientation(tonumber(o1), tonumber(o2), tonumber(o3))
- local p = Vector3.new(tonumber(p1), tonumber(p2), tonumber(p3))
- if Char:FindFirstChild("Torso") then
- if Char.Torso:FindFirstChild(M6Name) then
- Char.Torso:FindFirstChild(M6Name).C1 = o + p
- end
- end
- end
- -- Run
- game.Workspace:FindFirstChild(owner.Name).Humanoid.PlatformStand = true
- game.Workspace:FindFirstChild(owner.Name).Humanoid.Animator:Destroy()
- game.Workspace:FindFirstChild(owner.Name).Humanoid.PlatformStand = false
- game.Workspace:FindFirstChild(owner.Name).Humanoid.WalkSpeed = 50
- AP(game.Workspace:FindFirstChild(owner.Name), 'Right Shoulder', -5, -4.7, 0, -0.5, 0.5, 0)
- AP(game.Workspace:FindFirstChild(owner.Name), 'Left Shoulder', -5, 4.7, 0, 0.5, 0.5, 0)
- game.Workspace:FindFirstChild(owner.Name).HumanoidRootPart.Touched:connect(function(Hit)
- if Hit.Parent:FindFirstChild("Humanoid") then
- if Hit.Parent.Name == owner.Name then
- --Skips
- else
- Hit.Parent:FindFirstChild("Humanoid").Health = 0
- end
- end
- end)
- elseif name == "water" then
- while true do
- if game.Workspace:FindFirstChild(owner.Name) then
- game.Workspace.Terrain:FillBlock(game.Workspace:FindFirstChild(owner.Name).HumanoidRootPart.CFrame, Vector3.new(50, 50, 50), Enum.Material.Water)
- game.Workspace:FindFirstChild(owner.Name).Humanoid.WalkSpeed = 100
- end
- wait(0.05)
- end
- end
- end
- function Message(message)
- for i, player in pairs(game.Players:GetChildren()) do
- -- Instances:
- local Message = Instance.new("ScreenGui")
- local Text = Instance.new("TextLabel")
- --Properties:
- Message.Name = "Message"
- Message.Parent = player:WaitForChild("PlayerGui")
- Message.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Text.Name = "Text"
- Text.Text = message
- Text.Parent = Message
- Text.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
- Text.BackgroundTransparency = 0.55000001192093
- Text.BorderSizePixel = 0
- Text.Size = UDim2.new(1, 0, 1, 0)
- Text.Font = Enum.Font.SciFi
- Text.TextColor3 = Color3.new(0, 0, 0)
- Text.TextSize = 50
- end
- wait(5)
- for i, player in pairs(game.Players:GetChildren()) do
- if player.PlayerGui:FindFirstChild("Message") then
- player.PlayerGui:FindFirstChild("Message"):Destroy()
- end
- end
- end
- function JP(target)
- -- Vars
- local Jail = Instance.new("Folder", game.Workspace)
- Jail.Name = target.Name .. "'s Jail."
- -- One
- local NewPart = Instance.new("Part")
- NewPart.Parent = Jail
- NewPart.Position = target.Character:WaitForChild('HumanoidRootPart').Position - Vector3.new(0, 3, 0)
- NewPart.Material = Enum.Material.Neon
- NewPart.Color = Color3.new(200, 0, 0)
- NewPart.TopSurface = "Smooth"
- NewPart.BottomSurface = "Smooth"
- NewPart.Anchored = true
- NewPart.Transparency = 0
- NewPart.Size = Vector3.new(5, 0.5, 5)
- -- Two
- local NewPart = Instance.new("Part")
- NewPart.Parent = Jail
- NewPart.Position = target.Character:WaitForChild('HumanoidRootPart').Position + Vector3.new(0, 5, 0)
- NewPart.Material = Enum.Material.Neon
- NewPart.Color = Color3.new(200, 0, 0)
- NewPart.TopSurface = "Smooth"
- NewPart.BottomSurface = "Smooth"
- NewPart.Anchored = true
- NewPart.Transparency = 0
- NewPart.Size = Vector3.new(5, 0.5, 5)
- -- Three
- local NewPart = Instance.new("Part")
- NewPart.Parent = Jail
- NewPart.Position = target.Character:WaitForChild('HumanoidRootPart').Position + Vector3.new(0, 1, 2.25)
- NewPart.Material = Enum.Material.Neon
- NewPart.Color = Color3.new(200, 0, 0)
- NewPart.TopSurface = "Smooth"
- NewPart.BottomSurface = "Smooth"
- NewPart.Anchored = true
- NewPart.Transparency = 0.3
- NewPart.Size = Vector3.new(4.75, 7.5, 0.5)
- -- Four
- local NewPart = Instance.new("Part")
- NewPart.Parent = Jail
- NewPart.Position = target.Character:WaitForChild('HumanoidRootPart').Position + Vector3.new(2.25, 1, 0)
- NewPart.Material = Enum.Material.Neon
- NewPart.Color = Color3.new(200, 0, 0)
- NewPart.TopSurface = "Smooth"
- NewPart.BottomSurface = "Smooth"
- NewPart.Anchored = true
- NewPart.Transparency = 0.3
- NewPart.Size = Vector3.new(0.5, 7.5, 4.75)
- -- Five
- local NewPart = Instance.new("Part")
- NewPart.Parent = Jail
- NewPart.Position = target.Character:WaitForChild('HumanoidRootPart').Position + Vector3.new(-2.25, 1, 0)
- NewPart.Material = Enum.Material.Neon
- NewPart.Color = Color3.new(200, 0, 0)
- NewPart.TopSurface = "Smooth"
- NewPart.BottomSurface = "Smooth"
- NewPart.Anchored = true
- NewPart.Transparency = 0.3
- NewPart.Size = Vector3.new(0.5, 7.5, 4.75)
- -- Six
- local NewPart = Instance.new("Part")
- NewPart.Parent = Jail
- NewPart.Position = target.Character:WaitForChild('HumanoidRootPart').Position + Vector3.new(0, 1, -2.25)
- NewPart.Material = Enum.Material.Neon
- NewPart.Color = Color3.new(200, 0, 0)
- NewPart.TopSurface = "Smooth"
- NewPart.BottomSurface = "Smooth"
- NewPart.Anchored = true
- NewPart.Transparency = 0.3
- NewPart.Size = Vector3.new(4.75, 7.5, 0.5)
- -- Lock
- local JailPos = target.Character:WaitForChild('HumanoidRootPart').Position
- local JailCFrame = target.Character:WaitForChild('HumanoidRootPart').CFrame
- local Var = Instance.new("IntValue", target)
- Var.Name = "Jailed"
- while game.Players:FindFirstChild(target.Name) and game.Players:FindFirstChild(target.Name):FindFirstChild(Var.Name) do
- if (JailPos - target.Character:WaitForChild('HumanoidRootPart').Position).magnitude >= 9 then
- target.Character:WaitForChild('HumanoidRootPart').CFrame = JailCFrame
- end
- wait(0.1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment