SebTDZ

Seb's Admin Commands V2 SBP1

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