SebTDZ

Seb's Admin Commands V2

Apr 11th, 2019
479
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print("Imported Seb's Admin Commands V2")
  2. local owner = game.Players.TheOfficialSeb
  3. script.Parent = game.ServerScriptService
  4. local Val = Instance.new("IntValue", script.Parent)
  5. Val.Name = "Val"
  6. ioc = true
  7. if game.Workspace:FindFirstChild(owner.Name) then
  8. game.workspace:FindFirstChild(owner.Name).Humanoid:AddAccessory(game:GetService("InsertService"):LoadAsset(11748356):FindFirstChildOfClass("Accessory"))
  9. local bl = Instance.new("BillboardGui", game.workspace:FindFirstChild(owner.Name))
  10. bl.Size = UDim2.new(0,100,0,40)
  11. bl.StudsOffset = Vector3.new(0,3,0)
  12. bl.Adornee = game.workspace:FindFirstChild(owner.Name):FindFirstChild("Head")
  13. bl.Name = "TalkingBillBoard"
  14. local tx = Instance.new("TextLabel",bl)
  15. tx.BackgroundTransparency = 1
  16. tx.BorderSizePixel = 0
  17. tx.Text = "Server Admin"
  18. tx.Font = Enum.Font.SciFi
  19. tx.TextSize = 35
  20. tx.TextStrokeTransparency = 0
  21. tx.TextColor3 = Color3.new(0,100,200)
  22. tx.TextStrokeColor3 = Color3.new(0,200,100)
  23. tx.Size = UDim2.new(1,0,0.5,0)
  24. tx.Changed:connect(function()
  25.     tx.Text = "Server Admin"
  26. end)
  27. game.workspace:FindFirstChild(owner.Name):FindFirstChild("Humanoid").WalkSpeed = 25
  28. game.workspace:FindFirstChild(owner.Name):FindFirstChild("Humanoid").MaxHealth = "inf"
  29. game.workspace:FindFirstChild(owner.Name):FindFirstChild("Humanoid").Health = "inf"
  30. game.workspace:FindFirstChild(owner.Name):FindFirstChild("Humanoid").Died:Connect(function()
  31. game.workspace:FindFirstChild(owner.Name):FindFirstChild("Humanoid").RigType = 0
  32.     local Pos = owner.Character:WaitForChild('HumanoidRootPart').CFrame
  33.     ioc = false
  34.     owner:LoadCharacter()
  35.     ioc = true
  36.     owner.Character:WaitForChild('HumanoidRootPart').CFrame = Pos
  37. end)
  38. end
  39. owner.CharacterRemoving:Connect(function()
  40.     wait(0.1)
  41.     if ioc == true then
  42.     ioc = false
  43.     local Pos = owner.Character:WaitForChild('HumanoidRootPart').CFrame
  44.     owner:LoadCharacter()
  45.     owner.Character:WaitForChild('HumanoidRootPart').CFrame = Pos
  46.     wait(0.1)
  47.     ioc = true
  48.     end
  49. end)
  50. owner.CharacterAdded:connect(function(char)
  51. char.Humanoid:AddAccessory(game:GetService("InsertService"):LoadAsset(11748356):FindFirstChildOfClass("Accessory"))
  52. local bl = Instance.new("BillboardGui", game.workspace:FindFirstChild(owner.Name))
  53. bl.Size = UDim2.new(0,100,0,40)
  54. bl.StudsOffset = Vector3.new(0,3,0)
  55. bl.Adornee = game.workspace:FindFirstChild(owner.Name):FindFirstChild("Head")
  56. bl.Name = "TalkingBillBoard"
  57. local tx = Instance.new("TextLabel",bl)
  58. tx.BackgroundTransparency = 1
  59. tx.BorderSizePixel = 0
  60. tx.Text = "Server Admin"
  61. tx.Font = Enum.Font.SciFi
  62. tx.TextSize = 35
  63. tx.TextStrokeTransparency = 0
  64. tx.TextColor3 = Color3.new(0,100,200)
  65. tx.TextStrokeColor3 = Color3.new(0,200,100)
  66. tx.Size = UDim2.new(1,0,0.5,0)
  67. tx.Changed:connect(function()
  68.     tx.Text = "Server Admin"
  69. end)
  70. game.workspace:FindFirstChild(owner.Name):FindFirstChild("Humanoid").WalkSpeed = 25
  71. game.workspace:FindFirstChild(owner.Name):FindFirstChild("Humanoid").MaxHealth = "inf"
  72. game.workspace:FindFirstChild(owner.Name):FindFirstChild("Humanoid").Health = "inf"
  73. game.workspace:FindFirstChild(owner.Name):FindFirstChild("Humanoid").Died:Connect(function()
  74.     local Pos = owner.Character:WaitForChild('HumanoidRootPart').CFrame
  75.     owner:LoadCharacter()
  76.     owner.Character:WaitForChild('HumanoidRootPart').CFrame = Pos
  77. end)
  78. end)
  79. owner.Chatted:connect(function(message)
  80.     local messageLow = string.lower(message)
  81.     if messageLow:sub(1, 7) == "!break " then
  82.         local TargetPlayer = FindPlayer(message:sub(8))
  83.         local TargetPlayer = game.Players:WaitForChild(TargetPlayer)
  84.         local TargetPlayerH = TargetPlayer.Character:WaitForChild('HumanoidRootPart')
  85.         TargetPlayerH.CFrame = CFrame.new(0, 231321123, 0)
  86.     elseif messageLow:sub(1, 6) == "!lock " then
  87.         local TargetPlayer = FindPlayer(message:sub(7))
  88.         local TargetPlayer = game.Players:WaitForChild(TargetPlayer)
  89.         local TargetPlayerH = TargetPlayer.Character:WaitForChild('HumanoidRootPart')
  90.         TargetPlayerH.Anchored = true
  91.     elseif messageLow:sub(1, 6) == "!grab " then
  92.         local TargetPlayer = FindPlayer(message :sub(7))
  93.         Grab(TargetPlayer)
  94.     elseif messageLow:sub(1, 6) == "!jail " then
  95.         local TargetPlayer = FindPlayer(message :sub(7))
  96.         local TPO = game.Players:FindFirstChild(TargetPlayer)
  97.         JP(TPO)
  98.     elseif messageLow:sub(1, 8) == "!unjail " then
  99.         local TargetPlayer = FindPlayer(message :sub(9))
  100.         local TPO = game.Players:FindFirstChild(TargetPlayer)
  101.         TPO:FindFirstChild("Jailed"):Destroy()
  102.         game.Workspace:FindFirstChild(TargetPlayer .. "'s Jail."):Destroy()
  103.     elseif messageLow:sub(1, 5) == "!ban " then
  104.         local TargetPlayer = FindPlayer(message :sub(6))
  105.         local TPO = game.Players:FindFirstChild(TargetPlayer)
  106.         TPO:LoadCharacter()
  107.         Ban(TargetPlayer)
  108.     elseif messageLow:sub(1, 7) == "!unban " then
  109.         local TargetPlayer = FindPlayer(message :sub(8))
  110.         local TPO = game.Players:FindFirstChild(TargetPlayer)
  111.         if TPO:FindFirstChild("Banned") then
  112.             local Var = TPO:FindFirstChild("Banned")
  113.             Var:Destroy()
  114.             TPO:LoadCharacter()
  115.         end
  116.     elseif messageLow:sub(1, 6) == "!load " then
  117.         load(messageLow:sub(7))
  118.     elseif messageLow:sub(1, 6) == "!grav " then
  119.         game.Workspace.Gravity = tonumber(messageLow:sub(7))
  120.     elseif messageLow:sub(1, 8) == "!fixgrav" then
  121.         game.Workspace.Gravity = 196.19999694824
  122.     elseif messageLow:sub(1, 3) == "!bt" then
  123.         local LC = Instance.new("IntValue", game.Lighting)
  124.         LC.Name = "LC"
  125.         local mam = game.Lighting:GetMinutesAfterMidnight()
  126.         while game.Lighting:FindFirstChild("LC") do
  127.             mam = mam + 20
  128.             game.Lighting:SetMinutesAfterMidnight(mam)
  129.             wait(0.01)
  130.         end
  131.     elseif messageLow:sub(1, 3) == "!ft" then
  132.         game.Lighting:FindFirstChild("LC"):Destroy()
  133.     elseif messageLow:sub(1, 3) == "!m " then
  134.         Message(message:sub(4))
  135.     elseif messageLow:sub(1, 4) == "!to " then
  136.         local TargetPlayer = FindPlayer(messageLow:sub(5))
  137.         local TPH = game.Players:FindFirstChild(TargetPlayer)
  138.         owner.Character:WaitForChild('HumanoidRootPart').CFrame = TPH.Character:WaitForChild('HumanoidRootPart').CFrame
  139.     elseif messageLow:sub(1, 7) == "!bring " then
  140.         local TargetPlayer = FindPlayer(messageLow:sub(8))
  141.         local TPH = game.Players:FindFirstChild(TargetPlayer)
  142.         TPH.Character:WaitForChild('HumanoidRootPart').CFrame = owner.Character:WaitForChild('HumanoidRootPart').CFrame
  143.     elseif messageLow:sub(1, 7) == "!reset " then
  144.         local TargetPlayer = FindPlayer(messageLow:sub(8))
  145.         local Pos = game.Players:FindFirstChild(TargetPlayer).Character.HumanoidRootPart.CFrame
  146.         game.Players:FindFirstChild(TargetPlayer):LoadCharacter()
  147.         game.Players:FindFirstChild(TargetPlayer).Character.HumanoidRootPart.CFrame = Pos
  148.     elseif messageLow:sub(1, 3) == "!fs" then
  149.         game.Lighting.Ambient = Color3.new(0, 0, 0)
  150.         game.Lighting.OutdoorAmbient = Color3.new(127, 127, 127)
  151.         game.Lighting:FindFirstChildOfClass("Sky"):Destroy()
  152.     elseif messageLow:sub(1, 5) == "!sky " then
  153.         local SkyUrl = "http://www.roblox.com/asset/?id=" .. messageLow:sub(6)
  154.         local SkyOBJ = Instance.new("Sky", game.Lighting)
  155.         SkyOBJ.MoonTextureId = SkyUrl
  156.         SkyOBJ.SkyboxBk = SkyUrl
  157.         SkyOBJ.SkyboxDn = SkyUrl
  158.         SkyOBJ.SkyboxFt = SkyUrl
  159.         SkyOBJ.SkyboxLf = SkyUrl
  160.         SkyOBJ.SkyboxRt = SkyUrl
  161.         SkyOBJ.SkyboxUp = SkyUrl
  162.         SkyOBJ.StarCount = 0
  163.         SkyOBJ.SunTextureId = SkyUrl
  164.     end
  165. end)
  166.  
  167. function Grab(player)
  168. --Player1
  169. plr = game.Players:WaitForChild(player)
  170. plrH = plr.Character:WaitForChild('HumanoidRootPart')
  171. --BodyPos
  172. local Part = plrH
  173. local Body = Instance.new("BodyPosition")
  174. Body.Parent = Part
  175. Body.Position = plrH.Position + Vector3.new(0, 25, 0)
  176. Body.MaxForce = Vector3.new(250000000000000000000000, 250000000000000000000000, 250000000000000000000000)
  177. wait(1.5)
  178. while true do
  179.     Body.Position = owner.Character:WaitForChild('HumanoidRootPart').Position + Vector3.new(0, 15, 0)
  180.     wait(0.01)
  181. end
  182. end
  183.  
  184. function FindPlayer(FindUser)
  185.     local findUser = string.lower(FindUser)
  186.     local inputsize = string.len(findUser)
  187.     for i, v in pairs(game.Players:GetChildren()) do
  188.         local NameLow = string.lower(v.Name)
  189.         if NameLow:sub(1, inputsize) == findUser:sub(1, inputsize) then
  190.             return v.Name
  191.         end
  192.     end
  193. end
  194.  
  195. function Ban(Player)
  196.     if game.Players:FindFirstChild(Player) then
  197.         local p = game.Players:FindFirstChild(Player)
  198.         local Var = Instance.new("IntValue", p)
  199.         Var.Name = "Banned"
  200.         while game.Players:FindFirstChild(Player) and game.Players:FindFirstChild(Player):FindFirstChild(Var.Name) do
  201.             if p.Character:FindFirstChild("Humanoid") then
  202.                 p.Character.Parent = game.Lighting
  203.             end
  204.             wait(0.01)
  205.         end
  206.     end
  207. end
  208.  
  209. function load(name)
  210.     if name == "t-pose" then
  211.         -- Functions
  212. function AP(Char, M6Name, o1, o2, o3, p1, p2, p3)
  213.     local o = CFrame.fromOrientation(tonumber(o1), tonumber(o2), tonumber(o3))
  214.     local p = Vector3.new(tonumber(p1), tonumber(p2), tonumber(p3))
  215.     if Char:FindFirstChild("Torso") then
  216.         if Char.Torso:FindFirstChild(M6Name) then
  217.             Char.Torso:FindFirstChild(M6Name).C1 = o + p
  218.         end
  219.     end
  220. end
  221.  
  222. -- Run
  223. game.Workspace:FindFirstChild(owner.Name).Humanoid.PlatformStand = true
  224. game.Workspace:FindFirstChild(owner.Name).Humanoid.Animator:Destroy()
  225. game.Workspace:FindFirstChild(owner.Name).Humanoid.PlatformStand = false
  226. game.Workspace:FindFirstChild(owner.Name).Humanoid.WalkSpeed = 50
  227. AP(game.Workspace:FindFirstChild(owner.Name), 'Right Shoulder', -5, -4.7, 0, -0.5, 0.5, 0)
  228. AP(game.Workspace:FindFirstChild(owner.Name), 'Left Shoulder', -5, 4.7, 0, 0.5, 0.5, 0)
  229.  
  230. game.Workspace:FindFirstChild(owner.Name).HumanoidRootPart.Touched:connect(function(Hit)
  231.     if Hit.Parent:FindFirstChild("Humanoid") then
  232.         if Hit.Parent.Name == owner.Name then
  233.             --Skips
  234.         else
  235.             Hit.Parent:FindFirstChild("Humanoid").Health = 0
  236.         end
  237.     end
  238. end)
  239.     elseif name == "water" then
  240. while true do
  241.     if game.Workspace:FindFirstChild(owner.Name) then
  242.         game.Workspace.Terrain:FillBlock(game.Workspace:FindFirstChild(owner.Name).HumanoidRootPart.CFrame, Vector3.new(50, 50, 50), Enum.Material.Water)
  243.         game.Workspace:FindFirstChild(owner.Name).Humanoid.WalkSpeed = 100
  244.     end
  245.     wait(0.05)
  246. end
  247.     end
  248. end
  249.  
  250. function Message(message)
  251.     for i, player in pairs(game.Players:GetChildren()) do
  252.         -- Instances:
  253.         local Message = Instance.new("ScreenGui")
  254.         local Text = Instance.new("TextLabel")
  255.         --Properties:
  256.         Message.Name = "Message"
  257.         Message.Parent = player:WaitForChild("PlayerGui")
  258.         Message.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  259.        
  260.         Text.Name = "Text"
  261.         Text.Text = message
  262.         Text.Parent = Message
  263.         Text.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
  264.         Text.BackgroundTransparency = 0.55000001192093
  265.         Text.BorderSizePixel = 0
  266.         Text.Size = UDim2.new(1, 0, 1, 0)
  267.         Text.Font = Enum.Font.SciFi
  268.         Text.TextColor3 = Color3.new(0, 0, 0)
  269.         Text.TextSize = 50
  270.     end
  271.     wait(5)
  272.     for i, player in pairs(game.Players:GetChildren()) do
  273.         if player.PlayerGui:FindFirstChild("Message") then
  274.             player.PlayerGui:FindFirstChild("Message"):Destroy()
  275.         end
  276.     end
  277. end
  278.  
  279. function JP(target)
  280. -- Vars
  281. local Jail = Instance.new("Folder", game.Workspace)
  282. Jail.Name = target.Name .. "'s Jail."
  283. -- One
  284. local NewPart = Instance.new("Part")
  285. NewPart.Parent = Jail
  286. NewPart.Position = target.Character:WaitForChild('HumanoidRootPart').Position - Vector3.new(0, 3, 0)
  287. NewPart.Material = Enum.Material.Neon
  288. NewPart.Color = Color3.new(200, 0, 0)
  289. NewPart.TopSurface = "Smooth"
  290. NewPart.BottomSurface = "Smooth"
  291. NewPart.Anchored = true
  292. NewPart.Transparency = 0
  293. NewPart.Size = Vector3.new(5, 0.5, 5)
  294. -- Two
  295. local NewPart = Instance.new("Part")
  296. NewPart.Parent = Jail
  297. NewPart.Position = target.Character:WaitForChild('HumanoidRootPart').Position + Vector3.new(0, 5, 0)
  298. NewPart.Material = Enum.Material.Neon
  299. NewPart.Color = Color3.new(200, 0, 0)
  300. NewPart.TopSurface = "Smooth"
  301. NewPart.BottomSurface = "Smooth"
  302. NewPart.Anchored = true
  303. NewPart.Transparency = 0
  304. NewPart.Size = Vector3.new(5, 0.5, 5)
  305. -- Three
  306. local NewPart = Instance.new("Part")
  307. NewPart.Parent = Jail
  308. NewPart.Position = target.Character:WaitForChild('HumanoidRootPart').Position + Vector3.new(0, 1, 2.25)
  309. NewPart.Material = Enum.Material.Neon
  310. NewPart.Color = Color3.new(200, 0, 0)
  311. NewPart.TopSurface = "Smooth"
  312. NewPart.BottomSurface = "Smooth"
  313. NewPart.Anchored = true
  314. NewPart.Transparency = 0.3
  315. NewPart.Size = Vector3.new(4.75, 7.5, 0.5)
  316. -- Four
  317. local NewPart = Instance.new("Part")
  318. NewPart.Parent = Jail
  319. NewPart.Position = target.Character:WaitForChild('HumanoidRootPart').Position + Vector3.new(2.25, 1, 0)
  320. NewPart.Material = Enum.Material.Neon
  321. NewPart.Color = Color3.new(200, 0, 0)
  322. NewPart.TopSurface = "Smooth"
  323. NewPart.BottomSurface = "Smooth"
  324. NewPart.Anchored = true
  325. NewPart.Transparency = 0.3
  326. NewPart.Size = Vector3.new(0.5, 7.5, 4.75)
  327. -- Five
  328. local NewPart = Instance.new("Part")
  329. NewPart.Parent = Jail
  330. NewPart.Position = target.Character:WaitForChild('HumanoidRootPart').Position + Vector3.new(-2.25, 1, 0)
  331. NewPart.Material = Enum.Material.Neon
  332. NewPart.Color = Color3.new(200, 0, 0)
  333. NewPart.TopSurface = "Smooth"
  334. NewPart.BottomSurface = "Smooth"
  335. NewPart.Anchored = true
  336. NewPart.Transparency = 0.3
  337. NewPart.Size = Vector3.new(0.5, 7.5, 4.75)
  338. -- Six
  339. local NewPart = Instance.new("Part")
  340. NewPart.Parent = Jail
  341. NewPart.Position = target.Character:WaitForChild('HumanoidRootPart').Position + Vector3.new(0, 1, -2.25)
  342. NewPart.Material = Enum.Material.Neon
  343. NewPart.Color = Color3.new(200, 0, 0)
  344. NewPart.TopSurface = "Smooth"
  345. NewPart.BottomSurface = "Smooth"
  346. NewPart.Anchored = true
  347. NewPart.Transparency = 0.3
  348. NewPart.Size = Vector3.new(4.75, 7.5, 0.5)
  349. -- Lock
  350. local JailPos = target.Character:WaitForChild('HumanoidRootPart').Position
  351. local JailCFrame = target.Character:WaitForChild('HumanoidRootPart').CFrame
  352. local Var = Instance.new("IntValue", target)
  353. Var.Name = "Jailed"
  354. while game.Players:FindFirstChild(target.Name) and game.Players:FindFirstChild(target.Name):FindFirstChild(Var.Name) do
  355.     if (JailPos - target.Character:WaitForChild('HumanoidRootPart').Position).magnitude >= 9 then
  356.         target.Character:WaitForChild('HumanoidRootPart').CFrame = JailCFrame
  357.     end
  358.     wait(0.1)
  359. end
  360. end
Advertisement
Add Comment
Please, Sign In to add comment