Advertisement
ProScripter29

Admin X

Jan 13th, 2023 (edited)
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.22 KB | None | 0 0
  1. -- / Admin X Created by HappyH0lidays2021 \ --
  2.  
  3. local Prefix = "/"
  4.  
  5. -- / Services \ --
  6.  
  7. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  8. local StarterGui = game:GetService("StarterGui")
  9. local UserInputService = game:GetService("UserInputService")
  10.  
  11. -- / Variables \ --
  12.  
  13. local InfiniteJumpEnabled = false
  14.  
  15. local ExtendSize = 5
  16.  
  17. local Player = game.Players.LocalPlayer
  18.  
  19. -- / Functions \ --
  20.  
  21. local function updateTracker(textLabel, target)
  22.     local highlight = Instance.new("Highlight", target.Character)
  23.     highlight.Enabled = true
  24.     highlight.Name = "locate_highlight"
  25.     highlight.FillTransparency = 0.05
  26.     highlight.FillColor = Color3.new(1, 1, 1)
  27.     highlight.OutlineTransparency = 1
  28.     while task.wait() do
  29.         textLabel.Text = target.Name.." | "..target.Character.Humanoid.Health
  30.     end
  31. end
  32.  
  33. local function extendHitbox()
  34.     while task.wait(1) do
  35.         for _, target in pairs(game.Players:GetPlayers()) do
  36.             if (target ~= Player) and target.Character:FindFirstChild("HumanoidRootPart") then
  37.                 local root = target.Character.HumanoidRootPart
  38.                 root.Transparency = 0
  39.                 root.CastShadow = false
  40.                 root.Shape = Enum.PartType.Ball
  41.                 root.CanCollide = false
  42.                 root.Color = Color3.new(1, 1, 1)
  43.                 root.Size = Vector3.new(ExtendSize, ExtendSize, ExtendSize)
  44.                 root.Material = Enum.Material.ForceField
  45.             end
  46.         end
  47.     end
  48. end
  49.  
  50. local function createBtools()
  51.     local build = Instance.new("Tool", Player.Backpack)
  52.     build.Name = "Build"
  53.     build.Activated:Connect(function()
  54.         local Part = Instance.new("Part", workspace)
  55.         Part.Position = Player:GetMouse().Hit.Position
  56.     end)
  57.     local clone = Instance.new("Tool", Player.Backpack)
  58.     clone.Name = "Clone"
  59.     clone.Activated:Connect(function()
  60.         if (Player:GetMouse().Target ~= nil) and (Player:GetMouse().Target.Locked == false)  then
  61.             local Clone = Player:GetMouse().Target:Clone()
  62.             Clone.Parent = workspace
  63.         end
  64.     end)
  65.     local del = Instance.new("Tool", Player.Backpack)
  66.     del.Name = "Delete"
  67.     del.Activated:Connect(function()
  68.         if (Player:GetMouse().Target ~= nil) and (Player:GetMouse().Target.Locked == false) then
  69.             Player:GetMouse().Target:Destroy()
  70.         end
  71.     end)
  72.     local anc = Instance.new("Tool", Player.Backpack)
  73.     anc.Name = "Anchor"
  74.     anc.Activated:Connect(function()
  75.         if (Player:GetMouse().Target ~= nil) then
  76.             Player:GetMouse().Target.Anchored = true
  77.         end
  78.     end)
  79.     local collision = Instance.new("Tool", Player.Backpack)
  80.     collision.Name = "Collision"
  81.     collision.Activated:Connect(function()
  82.         if (Player:GetMouse().Target ~= nil) then
  83.             if (Player:GetMouse().Target.CanCollide == true) then
  84.                 Player:GetMouse().Target.CanCollide = false
  85.             else
  86.                 Player:GetMouse().Target.CanCollide = true
  87.             end
  88.         end
  89.     end)
  90.     -- / Logic \ --
  91.     build.RequiresHandle = false
  92.     clone.RequiresHandle = false
  93.     del.RequiresHandle = false
  94.     anc.RequiresHandle = false
  95.     collision.RequiresHandle = false
  96. end
  97.  
  98. -- / Commands \ --
  99.  
  100. local Commands = {
  101.     speed = function(value)
  102.         Player.Character.Humanoid.WalkSpeed = tonumber(value[1])
  103.     end,
  104.     jumppower = function(value)
  105.         Player.Character.Humanoid.JumpPower = tonumber(value[1])
  106.         Player.Character.Humanoid.UseJumpPower = true
  107.     end,
  108.     infjump = function(value)
  109.         if (value[1] == "true") then
  110.             InfiniteJumpEnabled = true
  111.             UserInputService.JumpRequest:Connect(function()
  112.                 if InfiniteJumpEnabled then
  113.                     Player.Character.Humanoid:ChangeState("Jumping")
  114.                 end
  115.             end)
  116.         else
  117.             InfiniteJumpEnabled = false
  118.         end
  119.     end,
  120.     locate = function(value)
  121.         local players = {game.Players:FindFirstChild(value[1])}
  122.         if value[1] == "all" then
  123.             for _, target in pairs(game.Players:GetPlayers()) do
  124.                 table.insert(players, target)
  125.             end
  126.         end
  127.         for _, target in pairs(players) do
  128.             if target then
  129.                 local billboard = Instance.new("BillboardGui", target.Character)
  130.                 billboard.Name = "locate_gui"
  131.                 billboard.MaxDistance = value[2]
  132.                 billboard.Size = UDim2.new(0, 200, 0, 20)
  133.                 billboard.StudsOffset = Vector3.new(0, 4, 0)
  134.                 billboard.AlwaysOnTop = true
  135.                 -- / Text Display \ --
  136.                 local text = Instance.new("TextLabel", billboard)
  137.                 text.BackgroundTransparency = 1
  138.                 text.Size = UDim2.new(1, 0, 1, 0)
  139.                 text.Font = Enum.Font.SourceSansBold
  140.                 text.Text = target.Name.." | "..target.Character.Humanoid.Health
  141.                 text.TextColor3 = Color3.new(1, 1, 1)
  142.                 text.TextScaled = true
  143.                 text.TextStrokeTransparency = 0
  144.                 -- / Automatically Update \ --
  145.                 coroutine.wrap(updateTracker)(text, target)
  146.             end
  147.         end
  148.     end,
  149.     extendhitbox = function(value)
  150.         local multi = value[1] * 3
  151.         ExtendSize = multi
  152.         -- / Extend Hitbox \ --
  153.         coroutine.wrap(extendHitbox)()
  154.     end,
  155.     kill = function()
  156.         Player.Character.Humanoid.Health = 0
  157.         local fakeExplosion = Instance.new("Explosion", workspace)
  158.         fakeExplosion.Position = Player.Character.HumanoidRootPart.Position
  159.         fakeExplosion.Visible = false
  160.         fakeExplosion.BlastPressure = 100000
  161.     end,
  162.     freeze = function()
  163.         Player.Character.HumanoidRootPart.Anchored = true
  164.     end,
  165.     unfreeze = function()
  166.         Player.Character.HumanoidRootPart.Anchored = false
  167.     end,
  168.     spin = function(value)
  169.         if (value[1] == nil) then
  170.             value[1] = 30
  171.         end
  172.         if (not Player.Character.HumanoidRootPart:FindFirstChild("_spinthrust")) then
  173.             local BodyThrust = Instance.new("BodyThrust", Player.Character.HumanoidRootPart)
  174.             BodyThrust.Name = "_spinthrust"
  175.             BodyThrust.Force = Vector3.new((value[1] * 2), 0, 0)
  176.             BodyThrust.Location = Vector3.new(0, 0, (value[1] * 2))
  177.         else
  178.             local BodyThrust = Player.Character.HumanoidRootPart:FindFirstChild("_spinthrust")
  179.             BodyThrust.Force = Vector3.new((value[1] * 2), 0, 0)
  180.             BodyThrust.Location = Vector3.new(0, 0, (value[1] * 2))
  181.         end
  182.     end,
  183.     unspin = function(Arguments)
  184.         Player.Character.HumanoidRootPart._spinthrust:Destroy()
  185.     end,
  186.     btools = function()
  187.         coroutine.wrap(createBtools)()
  188.     end,
  189.     dex = function()
  190.         loadstring(game:HttpGet("https://cdn.wearedevs.net/scripts/Dex%20Explorer.txt"))()
  191.     end,
  192.     remotespy = function()
  193.         loadstring(game:HttpGet("https://pastebin.com/raw/66NjbMN7",true))()
  194.     end,
  195.     infiniteyield = function()
  196.         loadstring(game:HttpGet("https://cdn.wearedevs.net/scripts/Infinite%20Yield.txt"))()
  197.     end,
  198.     cmds = function()
  199.         StarterGui:SetCore("ChatMakeSystemMessage", {
  200.             Text = [[Admin X Chat Commands:
  201. ------------------------
  202. Speed
  203. Jump Power
  204. Infinte Jump
  205. Locate
  206. Extend Hitbox
  207. Kill
  208. Freeze
  209. Spin
  210. Btools
  211. ------------------------
  212. Extra Commands
  213. ------------------------
  214. Dex
  215. Remote Spy
  216. Infinite Yield
  217. ------------------------
  218. ]];
  219.             Color = Color3.fromRGB(255, 250, 0);
  220.             FontSize = Enum.FontSize.Size96
  221.         })
  222.     end,
  223. }
  224.  
  225. -- / Logic \ --
  226.  
  227. Player.Chatted:Connect(function(message)
  228.     -- / Created Variables \ --
  229.     local Split = string.split(message, " ")
  230.     local PrefixCommand = Split[1]
  231.     local Command = string.split(PrefixCommand, Prefix)
  232.     local Name = Command[2]
  233.     if Commands[string.lower(Name)] then
  234.         local Arguments = {}
  235.         for i = 2, #Split, 1 do
  236.             table.insert(Arguments, Split[i])
  237.         end
  238.         Commands[string.lower(Name)](Arguments)
  239.     end
  240. end)
  241.  
  242. task.wait() -- // Wait until the script loads
  243.  
  244. StarterGui:SetCore("ChatMakeSystemMessage", {
  245.     Text = [[Admin X Loaded!
  246. Chat /cmds for a list of commands.]];
  247.     Color = Color3.fromRGB(255, 0, 0);
  248.     FontSize = Enum.FontSize.Size96
  249. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement