RobloxMassiveHakerDi

LightingZ Hub Script (ALPHA)

Apr 15th, 2021 (edited)
521
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- LightingZ
  2. -- Version: 0.04
  3.  
  4. -- Instances:
  5.  
  6. local LightingZHUB = Instance.new("ScreenGui")
  7. local DragFrame = Instance.new("Frame")
  8. local GamesFrame = Instance.new("Frame")
  9. local Games = Instance.new("ScrollingFrame")
  10. local ArsenalButton = Instance.new("TextButton")
  11. local Shade = Instance.new("Frame")
  12. local Title = Instance.new("TextLabel")
  13. local SidePart = Instance.new("Frame")
  14. local GamesButton = Instance.new("TextButton")
  15. local CreditsButton = Instance.new("TextButton")
  16. local CreditsFrame = Instance.new("Frame")
  17. local Credits = Instance.new("ScrollingFrame")
  18. local TextLabel = Instance.new("TextLabel")
  19.  
  20. --Properties:
  21.  
  22. LightingZHUB.Name = "LightingZ | HUB"
  23. LightingZHUB.Parent = game:GetService("Players").LocalPlayer.PlayerGui
  24. LightingZHUB.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  25.  
  26. DragFrame.Name = "DragFrame"
  27. DragFrame.Parent = LightingZHUB
  28. DragFrame.BackgroundColor3 = Color3.fromRGB(65, 65, 65)
  29. DragFrame.BorderSizePixel = 0
  30. DragFrame.Position = UDim2.new(0.309838474, 0, 0.298833817, 0)
  31. DragFrame.Selectable = true
  32. DragFrame.Size = UDim2.new(0, 165, 0, 25)
  33. DragFrame.ZIndex = 10
  34.  
  35. GamesFrame.Name = "GamesFrame"
  36. GamesFrame.Parent = DragFrame
  37. GamesFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  38. GamesFrame.BorderSizePixel = 0
  39. GamesFrame.Position = UDim2.new(1.00017166, 0, 0, 0)
  40. GamesFrame.Size = UDim2.new(0, 416, 0, 277)
  41.  
  42. Games.Name = "Games"
  43. Games.Parent = GamesFrame
  44. Games.Active = true
  45. Games.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  46. Games.BackgroundTransparency = 1.000
  47. Games.BorderSizePixel = 0
  48. Games.Size = UDim2.new(0, 416, 0, 277)
  49. Games.ZIndex = 10
  50.  
  51. ArsenalButton.Name = "ArsenalButton"
  52. ArsenalButton.Parent = Games
  53. ArsenalButton.BackgroundColor3 = Color3.fromRGB(66, 66, 66)
  54. ArsenalButton.BorderSizePixel = 0
  55. ArsenalButton.Position = UDim2.new(0.234828502, 0, 0.0907173008, 0)
  56. ArsenalButton.Size = UDim2.new(0, 200, 0, 50)
  57. ArsenalButton.ZIndex = 10
  58. ArsenalButton.Font = Enum.Font.GothamBlack
  59. ArsenalButton.Text = "Arsenal"
  60. ArsenalButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  61. ArsenalButton.TextScaled = true
  62. ArsenalButton.TextSize = 14.000
  63. ArsenalButton.TextWrapped = true
  64.  
  65. Shade.Name = "Shade"
  66. Shade.Parent = ArsenalButton
  67. Shade.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  68. Shade.BorderSizePixel = 0
  69. Shade.Position = UDim2.new(0, 0, 1, 0)
  70. Shade.Size = UDim2.new(0, 200, 0, 11)
  71. Shade.ZIndex = 10
  72.  
  73. Title.Name = "Title"
  74. Title.Parent = GamesFrame
  75. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  76. Title.BackgroundTransparency = 1.000
  77. Title.Size = UDim2.new(0, 416, 0, 30)
  78. Title.ZIndex = 10
  79. Title.Font = Enum.Font.GothamBlack
  80. Title.Text = "Games"
  81. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  82. Title.TextScaled = true
  83. Title.TextSize = 14.000
  84. Title.TextWrapped = true
  85.  
  86. SidePart.Name = "SidePart"
  87. SidePart.Parent = DragFrame
  88. SidePart.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  89. SidePart.BorderSizePixel = 0
  90. SidePart.Position = UDim2.new(0, 0, 1.01328373, 0)
  91. SidePart.Size = UDim2.new(0, 165, 0, 251)
  92.  
  93. GamesButton.Name = "GamesButton"
  94. GamesButton.Parent = SidePart
  95. GamesButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  96. GamesButton.BackgroundTransparency = 1.000
  97. GamesButton.Position = UDim2.new(0, 0, 0.0654205158, 0)
  98. GamesButton.Size = UDim2.new(0, 165, 0, 28)
  99. GamesButton.ZIndex = 10
  100. GamesButton.Font = Enum.Font.GothamBlack
  101. GamesButton.Text = "🎮 Games"
  102. GamesButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  103. GamesButton.TextScaled = true
  104. GamesButton.TextSize = 14.000
  105. GamesButton.TextWrapped = true
  106.  
  107. CreditsButton.Name = "CreditsButton"
  108. CreditsButton.Parent = SidePart
  109. CreditsButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  110. CreditsButton.BackgroundTransparency = 1.000
  111. CreditsButton.Position = UDim2.new(0, 0, 0.228767127, 0)
  112. CreditsButton.Size = UDim2.new(0, 165, 0, 28)
  113. CreditsButton.ZIndex = 10
  114. CreditsButton.Font = Enum.Font.GothamBlack
  115. CreditsButton.Text = "©️ Credits"
  116. CreditsButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  117. CreditsButton.TextScaled = true
  118. CreditsButton.TextSize = 14.000
  119. CreditsButton.TextWrapped = true
  120.  
  121. CreditsFrame.Name = "CreditsFrame"
  122. CreditsFrame.Parent = DragFrame
  123. CreditsFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  124. CreditsFrame.BorderSizePixel = 0
  125. CreditsFrame.Position = UDim2.new(1.00017166, 0, 0, 0)
  126. CreditsFrame.Size = UDim2.new(0, 416, 0, 277)
  127. CreditsFrame.Visible = false
  128. CreditsFrame.ZIndex = 10
  129.  
  130. Credits.Name = "Credits"
  131. Credits.Parent = CreditsFrame
  132. Credits.Active = true
  133. Credits.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  134. Credits.BackgroundTransparency = 1.000
  135. Credits.BorderSizePixel = 0
  136. Credits.Size = UDim2.new(0, 416, 0, 277)
  137. Credits.ZIndex = 10
  138.  
  139. TextLabel.Parent = Credits
  140. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  141. TextLabel.BackgroundTransparency = 1.000
  142. TextLabel.Size = UDim2.new(0, 404, 0, 69)
  143. TextLabel.ZIndex = 10
  144. TextLabel.Font = Enum.Font.SourceSans
  145. TextLabel.Text = "This has all been made by Tatastic and SkeletonBloxYT nothing has been tooken from toolbox. Some bits are from youtube! I hope you enjoy!"
  146. TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  147. TextLabel.TextScaled = true
  148. TextLabel.TextSize = 40.000
  149. TextLabel.TextWrapped = true
  150.  
  151. -- Scripts:
  152.  
  153. local function OSOMAG_fake_script() -- ArsenalButton.LocalScript
  154.     local script = Instance.new('LocalScript', ArsenalButton)
  155.  
  156.     script.Parent.MouseButton1Click:Connect(function()
  157.         -- Gui to Lua
  158.         -- Version: 3.2
  159.  
  160.         -- Instances:
  161.  
  162.         local LightingZArsenal = Instance.new("ScreenGui")
  163.         local DragFrame = Instance.new("Frame")
  164.         local GamesFrame = Instance.new("Frame")
  165.         local Games = Instance.new("ScrollingFrame")
  166.         local AimbotButton = Instance.new("TextButton")
  167.         local Shade = Instance.new("Frame")
  168.         local ESPButton = Instance.new("TextButton")
  169.         local Shade_2 = Instance.new("Frame")
  170.         local Title = Instance.new("TextLabel")
  171.         local SidePart = Instance.new("Frame")
  172.  
  173.         --Properties:
  174.  
  175.         LightingZArsenal.Name = "LightingZ | Arsenal"
  176.         LightingZArsenal.Parent = game:GetService("Players").LocalPlayer.PlayerGui
  177.         LightingZArsenal.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  178.  
  179.         DragFrame.Name = "DragFrame"
  180.         DragFrame.Parent = LightingZArsenal
  181.         DragFrame.BackgroundColor3 = Color3.fromRGB(65, 65, 65)
  182.         DragFrame.BorderSizePixel = 0
  183.         DragFrame.Position = UDim2.new(0.520244002, 0, 0.312175632, 0)
  184.         DragFrame.Selectable = true
  185.         DragFrame.Size = UDim2.new(0, 130, 0, 25)
  186.         DragFrame.ZIndex = 10
  187.  
  188.         GamesFrame.Name = "GamesFrame"
  189.         GamesFrame.Parent = DragFrame
  190.         GamesFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  191.         GamesFrame.BorderSizePixel = 0
  192.         GamesFrame.Position = UDim2.new(-0.0058889389, 0, 1, 0)
  193.         GamesFrame.Size = UDim2.new(0, 416, 0, 277)
  194.         GamesFrame.ZIndex = 10
  195.  
  196.         Games.Name = "Games"
  197.         Games.Parent = GamesFrame
  198.         Games.Active = true
  199.         Games.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  200.         Games.BackgroundTransparency = 1.000
  201.         Games.BorderSizePixel = 0
  202.         Games.Size = UDim2.new(0, 416, 0, 277)
  203.         Games.ZIndex = 10
  204.  
  205.         AimbotButton.Name = "AimbotButton"
  206.         AimbotButton.Parent = Games
  207.         AimbotButton.BackgroundColor3 = Color3.fromRGB(66, 66, 66)
  208.         AimbotButton.BorderSizePixel = 0
  209.         AimbotButton.Position = UDim2.new(0.258866966, 0, 0.0907173008, 0)
  210.         AimbotButton.Size = UDim2.new(0, 200, 0, 50)
  211.         AimbotButton.ZIndex = 10
  212.         AimbotButton.Font = Enum.Font.GothamBlack
  213.         AimbotButton.Text = "Aimbot: OFF"
  214.         AimbotButton.TextColor3 = Color3.fromRGB(255, 0, 0)
  215.         AimbotButton.TextScaled = true
  216.         AimbotButton.TextSize = 14.000
  217.         AimbotButton.TextWrapped = true
  218.  
  219.         Shade.Name = "Shade"
  220.         Shade.Parent = AimbotButton
  221.         Shade.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  222.         Shade.BorderSizePixel = 0
  223.         Shade.Position = UDim2.new(0, 0, 1, 0)
  224.         Shade.Size = UDim2.new(0, 200, 0, 11)
  225.  
  226.         ESPButton.Name = "ESPButton"
  227.         ESPButton.Parent = Games
  228.         ESPButton.BackgroundColor3 = Color3.fromRGB(66, 66, 66)
  229.         ESPButton.BorderSizePixel = 0
  230.         ESPButton.Position = UDim2.new(0.268482357, 0, 0.23692669, 0)
  231.         ESPButton.Size = UDim2.new(0, 200, 0, 50)
  232.         ESPButton.ZIndex = 10
  233.         ESPButton.Font = Enum.Font.GothamBlack
  234.         ESPButton.Text = "ESP: OFF"
  235.         ESPButton.TextColor3 = Color3.fromRGB(255, 0, 0)
  236.         ESPButton.TextScaled = true
  237.         ESPButton.TextSize = 14.000
  238.         ESPButton.TextWrapped = true
  239.  
  240.         Shade_2.Name = "Shade"
  241.         Shade_2.Parent = ESPButton
  242.         Shade_2.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  243.         Shade_2.BorderSizePixel = 0
  244.         Shade_2.Position = UDim2.new(0, 0, 1, 0)
  245.         Shade_2.Size = UDim2.new(0, 200, 0, 11)
  246.  
  247.         Title.Name = "Title"
  248.         Title.Parent = GamesFrame
  249.         Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  250.         Title.BackgroundTransparency = 1.000
  251.         Title.Size = UDim2.new(0, 416, 0, 30)
  252.         Title.Font = Enum.Font.GothamBlack
  253.         Title.Text = "Arsenal"
  254.         Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  255.         Title.TextScaled = true
  256.         Title.TextSize = 14.000
  257.         Title.TextWrapped = true
  258.  
  259.         SidePart.Name = "SidePart"
  260.         SidePart.Parent = DragFrame
  261.         SidePart.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  262.         SidePart.BorderSizePixel = 0
  263.         SidePart.Position = UDim2.new(0.993939459, 0, 0, 0)
  264.         SidePart.Size = UDim2.new(0, 286, 0, 25)
  265.         SidePart.ZIndex = 10
  266.  
  267.         -- Scripts:
  268.  
  269.         local function ABPDMO_fake_script() -- AimbotButton.AIMBOT
  270.             local script = Instance.new('LocalScript', AimbotButton)
  271.  
  272.             _G.aimbot = false
  273.             local camera = game.Workspace.CurrentCamera
  274.             local localplayer = game:GetService("Players").LocalPlayer
  275.  
  276.             script.Parent.MouseButton1Click:Connect(function()
  277.                 if _G.aimbot == false then
  278.                     _G.aimbot = true
  279.                     script.Parent.TextColor3 = Color3.fromRGB(0, 255, 0)
  280.                     script.Parent.Text = "Aimbot: ON"
  281.                     function closestplayer()
  282.                         local dist = math.huge
  283.                         local target = nil
  284.                         for i,v in pairs (game:GetService("Players"):GetPlayers()) do
  285.                             if v ~= localplayer then
  286.                                 if v.Character and v.Character:FindFirstChild("Head") and v.TeamColor ~= localplayer.TeamColor and _G.aimbot then
  287.                                     local magnitude = (v.Character.Head.Position - localplayer.Character.Head.Position).magnitude
  288.                                     if magnitude < dist then
  289.                                         dist = magnitude
  290.                                         target = v
  291.                                     end
  292.                                 end
  293.                             end
  294.                         end
  295.                         return target
  296.  
  297.                     end
  298.  
  299.                 else
  300.                     _G.aimbot = false
  301.                     script.Parent.TextColor3 = Color3.fromRGB(255, 0, 0)
  302.                     script.Parent.Text = "Aimbot: OFF"
  303.                 end
  304.             end)
  305.  
  306.             local settings = {
  307.                 keybind =  Enum.UserInputType.MouseButton2
  308.             }
  309.  
  310.             local UIS = game:GetService("UserInputService")
  311.             local aiming = false
  312.  
  313.             UIS.InputBegan:Connect(function(inp)
  314.                 if inp.UserInputType == settings.keybind then
  315.                     aiming = true
  316.                 end
  317.             end)
  318.  
  319.             UIS.InputEnded:Connect(function(inp)
  320.                 if inp.UserInputType == settings.keybind then
  321.                     aiming = false
  322.                 end
  323.             end)
  324.  
  325.             game:GetService("RunService").RenderStepped:Connect(function()
  326.                 if aiming then
  327.                     camera.CFrame = CFrame.new(camera.CFrame.Position,closestplayer().Character.Head.Position)
  328.                 end
  329.             end)
  330.         end
  331.         coroutine.wrap(ABPDMO_fake_script)()
  332.         local function CXFPBNM_fake_script() -- ESPButton.ESP SCRIPT
  333.             local script = Instance.new('LocalScript', ESPButton)
  334.  
  335.             _G.ESP = false
  336.             local Players = game:GetService("Players")
  337.  
  338.             script.Parent.MouseButton1Click:Connect(function()
  339.                 if _G.ESP == false then
  340.                     _G.ESP = true
  341.                     script.Parent.TextColor3 = Color3.fromRGB(0, 255, 0)
  342.                     script.Parent.Text = "ESP: ON"
  343.                     function CreateGui(head,parent,face)
  344.                         local SurfaceGui = Instance.new("SurfaceGui", parent)
  345.                         SurfaceGui.Parent = parent
  346.                         SurfaceGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  347.                         SurfaceGui.Face = Enum.NormalId[face]
  348.                         SurfaceGui.LightInfluence = 0
  349.                         SurfaceGui.ResetOnSpawn = false
  350.                         SurfaceGui.Name = "name"
  351.                         SurfaceGui.AlwaysOnTop = true
  352.                         local Frame = Instance.new("Frame",SurfaceGui)
  353.                         Frame.BackgroundColor3 = Color3.fromRGB(59, 59, 59)
  354.                         Frame.Size = UDim2.new(1,0,1,0)
  355.                     end
  356.  
  357.                     while wait(1) do
  358.                         for i,v in pairs(Players:GetPlayers()) do
  359.                             if v ~= Players.LocalPlayer and v.Character ~= nil and v.Character:FindFirstChild("Head") and _G.ESP and v.Character.Head:FindFirstChild("ESP") == nil then
  360.                                 for i,v in pairs(v.Character:GetChildren()) do
  361.                                     if v:IsA("MeshPart") or v.Name == "Head" then
  362.                                         CreateGui("ESP",v,"Back")
  363.                                         CreateGui("ESP",v,"Front")
  364.                                         CreateGui("ESP",v,"Top")
  365.                                         CreateGui("ESP",v,"Bottom")
  366.                                         CreateGui("ESP",v,"Right")
  367.                                         CreateGui("ESP",v,"Left")
  368.                                     end
  369.                                 end
  370.                             end
  371.                         end
  372.                     end
  373.                 else
  374.                     _G.ESP = false
  375.                     script.Parent.TextColor3 = Color3.fromRGB(255, 0, 0)
  376.                     script.Parent.Text = "ESP: OFF"
  377.                 end
  378.             end)
  379.         end
  380.         coroutine.wrap(CXFPBNM_fake_script)()
  381.         local function GTTPK_fake_script() -- DragFrame.Drag
  382.             local script = Instance.new('LocalScript', DragFrame)
  383.  
  384.             local UserInputService = game:GetService("UserInputService")
  385.  
  386.             local gui = script.Parent
  387.  
  388.             local dragging
  389.             local dragInput
  390.             local dragStart
  391.             local startPos
  392.  
  393.             local function update(input)
  394.                 local delta = input.Position - dragStart
  395.                 gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  396.             end
  397.  
  398.             gui.InputBegan:Connect(function(input)
  399.                 if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  400.                     dragging = true
  401.                     dragStart = input.Position
  402.                     startPos = gui.Position
  403.  
  404.                     input.Changed:Connect(function()
  405.                         if input.UserInputState == Enum.UserInputState.End then
  406.                             dragging = false
  407.                         end
  408.                     end)
  409.                 end
  410.             end)
  411.  
  412.             gui.InputChanged:Connect(function(input)
  413.                 if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  414.                     dragInput = input
  415.                 end
  416.             end)
  417.  
  418.             UserInputService.InputChanged:Connect(function(input)
  419.                 if input == dragInput and dragging then
  420.                     update(input)
  421.                 end
  422.             end)
  423.         end
  424.         coroutine.wrap(GTTPK_fake_script)()
  425.     end)
  426. end
  427. coroutine.wrap(OSOMAG_fake_script)()
  428. local function DPQGOCB_fake_script() -- GamesButton.LocalScript
  429.     local script = Instance.new('LocalScript', GamesButton)
  430.  
  431.     script.Parent.MouseButton1Click:Connect(function()
  432.         script.Parent.Parent.Parent.GamesFrame.Visible = true
  433.         script.Parent.Parent.Parent.CreditsFrame.Visible = false
  434.     end)
  435. end
  436. coroutine.wrap(DPQGOCB_fake_script)()
  437. local function WEVD_fake_script() -- CreditsButton.LocalScript
  438.     local script = Instance.new('LocalScript', CreditsButton)
  439.  
  440.     script.Parent.MouseButton1Click:Connect(function()
  441.         script.Parent.Parent.Parent.GamesFrame.Visible = false
  442.         script.Parent.Parent.Parent.CreditsFrame.Visible = true
  443.     end)
  444. end
  445. coroutine.wrap(WEVD_fake_script)()
  446. local function UCTX_fake_script() -- DragFrame.Drag
  447.     local script = Instance.new('LocalScript', DragFrame)
  448.  
  449.     local UserInputService = game:GetService("UserInputService")
  450.  
  451.     local gui = script.Parent
  452.  
  453.     local dragging
  454.     local dragInput
  455.     local dragStart
  456.     local startPos
  457.  
  458.     local function update(input)
  459.         local delta = input.Position - dragStart
  460.         gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  461.     end
  462.  
  463.     gui.InputBegan:Connect(function(input)
  464.         if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  465.             dragging = true
  466.             dragStart = input.Position
  467.             startPos = gui.Position
  468.  
  469.             input.Changed:Connect(function()
  470.                 if input.UserInputState == Enum.UserInputState.End then
  471.                     dragging = false
  472.                 end
  473.             end)
  474.         end
  475.     end)
  476.  
  477.     gui.InputChanged:Connect(function(input)
  478.         if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  479.             dragInput = input
  480.         end
  481.     end)
  482.  
  483.     UserInputService.InputChanged:Connect(function(input)
  484.         if input == dragInput and dragging then
  485.             update(input)
  486.         end
  487.     end)
  488. end
  489. coroutine.wrap(UCTX_fake_script)()
  490.  
RAW Paste Data