Advertisement
ProScripter29

Happy's Hud

Dec 9th, 2022 (edited)
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 14.12 KB | Gaming | 0 0
  1. local GUI = loadstring(game:HttpGet("https://raw.githubusercontent.com/bloodball/-back-ups-for-libs/main/aaaa"))()
  2.  
  3. local UI = GUI:CreateWindow("Happy's Hud","Universal Hub")
  4.  
  5. local Home = UI:addPage("Main",2,true,6)
  6.  
  7. local Players = game:GetService("Players")
  8. local Player = Players.LocalPlayer
  9. local Camera = workspace.CurrentCamera
  10.  
  11. local AntiKickEnabled = false
  12. local InfiniteJumpingEnabled = false
  13.  
  14. local HitboxSize = 5 -- Default Hitbox Size
  15. local WalkSpeed = 16 -- Default WalkSpeed
  16. local JumpPower = 50 -- Default JumpPower
  17.  
  18. local IsTracking = false
  19. local MaxDistance = 5000 -- In Studs
  20.  
  21. local function EspTrack(Humanoid, IsAnNPC)
  22.     local Root
  23.     if Humanoid.RigType == Enum.HumanoidRigType.R15 then -- Check if the RigType of the player is R15 or R6
  24.         if Humanoid.Parent:FindFirstChild("UpperTorso"):IsA("CharacterMesh") then
  25.             Humanoid.Parent:FindFirstChild("UpperTorso").Name = "_UpperTorso" -- Rename the Meshes that are called "UpperTorso" to avoid the script from mistaking it as a BodyPart
  26.         end
  27.         Root = Humanoid.Parent:FindFirstChild("UpperTorso")
  28.     else
  29.         if Humanoid.Parent:FindFirstChild("Torso"):IsA("CharacterMesh") then
  30.             Humanoid.Parent:FindFirstChild("Torso").Name = "_Torso" -- Rename the Meshes that are called "Torso" to avoid the script from mistaking it as a BodyPart
  31.         end
  32.         Root = Humanoid.Parent:FindFirstChild("Torso")
  33.     end
  34.     if Root then
  35.         task.spawn(function()
  36.             local TorsoEsp = Instance.new("BoxHandleAdornment", Root)
  37.             if IsAnNPC then
  38.                 TorsoEsp.Color3 = Color3.fromRGB(0, 170, 255)
  39.             elseif not IsAnNPC then
  40.                 TorsoEsp.Color3 = Color3.fromRGB(0,255,0)
  41.             end
  42.             TorsoEsp.Transparency = 0.5
  43.             TorsoEsp.Adornee = Root.Parent.HumanoidRootPart
  44.             TorsoEsp.AdornCullingMode = Enum.AdornCullingMode.Never
  45.             TorsoEsp.AlwaysOnTop = true
  46.             TorsoEsp.Size = Vector3.new(4.4,5.4,1.4)
  47.             TorsoEsp.CFrame = TorsoEsp.CFrame - Vector3.new(0,0.5,0)
  48.             TorsoEsp.Visible = true
  49.             TorsoEsp.ZIndex = 5
  50.             -- Creating the Name ESP
  51.             local NameEsp = Instance.new("BillboardGui", Humanoid.Parent:FindFirstChild("Head"))
  52.             NameEsp.Name = "_name-esp-gui"
  53.             NameEsp.AlwaysOnTop = true
  54.             NameEsp.Enabled = true
  55.             NameEsp.LightInfluence = 0
  56.             NameEsp.Size = UDim2.new(0, 200, 0, 15)
  57.             NameEsp.StudsOffset = Vector3.new(0, 2.1, 0)
  58.             local NameEspText = Instance.new("TextLabel", NameEsp)
  59.             NameEspText.Name = "_name-esp-text"
  60.             NameEspText.BackgroundTransparency = 1
  61.             NameEspText.Size = UDim2.new(0, 200, 0, 15)
  62.             NameEspText.Font = Enum.Font.SourceSansBold
  63.             if IsAnNPC then
  64.                 NameEspText.Text = "[NPC] "..Humanoid.Parent.Name
  65.                 NameEspText.TextColor3 = Color3.fromRGB(0, 170, 255)
  66.             elseif not IsAnNPC then
  67.                 NameEspText.Text = Humanoid.Parent.Name
  68.                 NameEspText.TextColor3 = Color3.fromRGB(0, 255, 0)
  69.             end
  70.             NameEspText.TextScaled = true
  71.             NameEspText.TextStrokeTransparency = 0
  72.             -- Creating the Distance ESP
  73.             local DistanceEsp = Instance.new("BillboardGui", Root)
  74.             DistanceEsp.Name = "_distance-esp-gui"
  75.             DistanceEsp.AlwaysOnTop = true
  76.             DistanceEsp.Enabled = true
  77.             DistanceEsp.LightInfluence = 0
  78.             DistanceEsp.Size = UDim2.new(0, 200, 0, 15)
  79.             DistanceEsp.StudsOffset = Vector3.new(0, -4.3, 0)
  80.             local NameEspDistance = Instance.new("TextLabel", DistanceEsp)
  81.             NameEspDistance.Name = "_distance-esp-text"
  82.             NameEspDistance.BackgroundTransparency = 1
  83.             NameEspDistance.Size = UDim2.new(0, 200, 0, 15)
  84.             NameEspDistance.Font = Enum.Font.SourceSansBold
  85.             NameEspDistance.TextScaled = true
  86.             NameEspDistance.TextStrokeTransparency = 0
  87.             ------------------------------------------------------------------------
  88.             while Root and IsTracking == true do -- While Root still exists and Tracking is on, run the function
  89.                 local RayCast = Ray.new(Root.Position, (Player.Character.HumanoidRootPart.Position - Root.Position).unit*100)
  90.                 local Part, Position, Normal = game.Workspace:FindPartOnRay(RayCast, Player.Character, false,true)
  91.                 local Dist = (Player.Character.HumanoidRootPart.Position - Root.Position).magnitude
  92.                 if (Dist > MaxDistance) then
  93.                     warn("Maximum Distance Reached")
  94.                     break
  95.                 end
  96.                 Part = Instance.new("Part")
  97.                 Part.Name = "_esp-track-part"
  98.                 Part.Parent = Humanoid.Parent
  99.                 Part.Anchored = true
  100.                 Part.CanCollide = false
  101.                 Part.Size = Vector3.new(0.15, 0.15, Dist)
  102.                 Part.Transparency = 1
  103.                 Part.CFrame = CFrame.new(Root.Position ,Position) * CFrame.new(0, 0, -Dist/2)
  104.                 local Highlight = Instance.new("BoxHandleAdornment", Part)     
  105.                 if IsAnNPC then
  106.                     Highlight.Color3 = Color3.fromRGB(0, 170, 255)
  107.                     NameEspDistance.Text = math.round(Dist).." Studs"
  108.                     NameEspDistance.TextColor3 = Color3.fromRGB(0, 170, 255)
  109.                 elseif not IsAnNPC then
  110.                     Highlight.Color3 = Color3.fromRGB(0,255,0)
  111.                     NameEspDistance.Text = math.round(Dist).." Studs"
  112.                     NameEspDistance.TextColor3 = Color3.fromRGB(0, 255, 0)
  113.                 end
  114.                 Highlight.Transparency = 0.5
  115.                 Highlight.Adornee = Part
  116.                 Highlight.AdornCullingMode = Enum.AdornCullingMode.Never
  117.                 Highlight.AlwaysOnTop = true
  118.                 Highlight.Size = Vector3.new(0.17, 0.17, Dist)
  119.                 Highlight.Visible = true
  120.                 Highlight.ZIndex = 0
  121.                 task.wait()
  122.                 Part:Destroy()
  123.             end
  124.             -- Root no longer exists or Tracking was set to off
  125.             print('Tracking ended for "'..Root.Parent.Name..'"')
  126.             if Root then
  127.                 NameEsp:Destroy()
  128.                 DistanceEsp:Destroy()
  129.                 TorsoEsp:Destroy()
  130.             else
  131.                 warn('Root no longer exists in the Character "'..Root.Parent.Name..'"')
  132.             end
  133.         end)
  134.     end
  135. end
  136.  
  137. local function EspTrackTool(Tool) -- Exactly the same function as tracking a player, but its a Tool instead
  138.     local Root = Tool.Handle
  139.     if Root then
  140.         task.spawn(function()
  141.             local NameEsp = Instance.new("BillboardGui", Root)
  142.             NameEsp.Name = "_name-esp-gui"
  143.             NameEsp.AlwaysOnTop = true
  144.             NameEsp.Enabled = true
  145.             NameEsp.LightInfluence = 0
  146.             NameEsp.Size = UDim2.new(0, 200, 0, 15)
  147.             NameEsp.StudsOffset = Vector3.new(0, 2.1, 0)
  148.             local NameEspText = Instance.new("TextLabel", NameEsp)
  149.             NameEspText.Name = "_name-esp-text"
  150.             NameEspText.BackgroundTransparency = 1
  151.             NameEspText.Size = UDim2.new(0, 200, 0, 15)
  152.             NameEspText.Font = Enum.Font.SourceSansBold
  153.             NameEspText.Text = "[TOOL] "..Root.Parent.Name
  154.             NameEspText.TextColor3 = Color3.fromRGB(255, 0, 0)
  155.             NameEspText.TextScaled = true
  156.             NameEspText.TextStrokeTransparency = 0
  157.             --
  158.             while Root and IsTracking == true do
  159.                 local RayCast = Ray.new(Root.Position, (Player.Character.HumanoidRootPart.Position - Root.Position).unit*100)
  160.                 local Part, Position, Normal = game.Workspace:FindPartOnRay(RayCast, Player.Character, false,  true)
  161.                 local Dist = (Player.Character.HumanoidRootPart.Position - Root.Position).magnitude
  162.                 if (Dist > MaxDistance) then
  163.                     warn("Maximum Distance Reached")
  164.                     break
  165.                 end
  166.                 -- Raycast Part --
  167.                 Part = Instance.new("Part")
  168.                 Part.Name = "_esp-track-part"
  169.                 Part.Parent = Root
  170.                 Part.Anchored = true
  171.                 Part.CanCollide = false
  172.                 Part.Size = Vector3.new(0.1, 0.1, Dist)
  173.                 Part.Transparency = 1
  174.                 Part.CFrame = CFrame.new(Root.Position, Position) * CFrame.new(0, 0, -Dist/2)
  175.                 local ToolEsp = Instance.new("BoxHandleAdornment", Part)       
  176.                 ToolEsp.Transparency = 0.5
  177.                 ToolEsp.Adornee = Part
  178.                 ToolEsp.AdornCullingMode = Enum.AdornCullingMode.Never
  179.                 ToolEsp.AlwaysOnTop = true
  180.                 ToolEsp.Size = Vector3.new(0.17, 0.17, Dist)
  181.                 ToolEsp.Color3 = Color3.fromRGB(255, 0, 0)
  182.                 ToolEsp.Visible = true
  183.                 ToolEsp.ZIndex = 0
  184.                 task.wait()
  185.                 Part:Destroy()
  186.             end
  187.             -- Tool no longer exists or Tracking was set to off
  188.             print('Tracking ended for "'..Root.Parent.Name..'"')
  189.             if Root then
  190.                 NameEsp:Destroy()
  191.             else
  192.                 warn("Tool no longer exists")
  193.             end
  194.         end)
  195.     end
  196. end
  197.  
  198. local function CheckDistance(Object, IsAnNPC)
  199.     if Object then
  200.         local Torso
  201.         if Object.RigType == Enum.HumanoidRigType.R15 then -- Check if the RigType of the player is R15 or R6
  202.             if Object.Parent:FindFirstChild("UpperTorso"):IsA("CharacterMesh") then
  203.                 Object.Parent:FindFirstChild("UpperTorso").Name = "_UpperTorso" -- Rename the Meshes that are called "UpperTorso" to avoid the script from mistaking it as a BodyPart
  204.             end
  205.             Torso = Object.Parent:FindFirstChild("UpperTorso")
  206.         else
  207.             if Object.Parent:FindFirstChild("Torso"):IsA("CharacterMesh") then
  208.                 Object.Parent:FindFirstChild("Torso").Name = "_Torso" -- Rename the Meshes that are called "Torso" to avoid the script from mistaking it as a BodyPart
  209.             end
  210.             Torso = Object.Parent:FindFirstChild("Torso")
  211.         end
  212.         local Distance = (Player.Character.HumanoidRootPart.Position - Torso.Position).magnitude
  213.         if Distance <= MaxDistance then -- Maximum distance of the tracker is 5000 studs by default
  214.             EspTrack(Object, IsAnNPC)
  215.         else
  216.             -- Ignore the Character as it is too far from the LocalPlayer
  217.             print(Object.Parent.Name.." is too far from the Player")
  218.         end
  219.     end
  220. end
  221.  
  222. local MainFunction = function()
  223.     task.spawn(function()
  224.         while task.wait(0.1) do
  225.             if IsTracking then -- If tracking is on, run the function
  226.                 for _, Thing in pairs(workspace:GetDescendants()) do -- Get all objects found in the workspace
  227.                     if Thing:IsA("Humanoid") and (Thing.Health > 0) and (Thing.Parent ~= Player.Character) then -- Check if object IS a Humanoid and Character is different from the LocalPlayer's Character
  228.                         if Players:GetPlayerFromCharacter(Thing.Parent) and not Thing.Parent:FindFirstChild("_esp-track-part") then
  229.                             CheckDistance(Thing, false) -- Check the distance of the Player
  230.                         elseif not Thing.Parent:FindFirstChild("_esp-track-part") then
  231.                             CheckDistance(Thing, true) -- Check the distance of the NPC
  232.                         end
  233.                     elseif Thing:IsA("Tool") then
  234.                         if Thing:FindFirstChild("Handle") then
  235.                             if not Thing.Handle:FindFirstChild("_esp-track-part") then
  236.                                 EspTrackTool(Thing) -- Track the Tool
  237.                             end
  238.                         end
  239.                     end
  240.                 end
  241.             end
  242.         end
  243.     end)
  244. end
  245.  
  246. MainFunction()
  247.  
  248. Home:addLabel("Character", "Actions for the Character")
  249.  
  250. Home:addButton("Reset", function()
  251. Player.Character.Humanoid.Health = 0
  252. end)
  253.  
  254. Home:addTextBox("Speed", "16"
  255. ,function(value)
  256. if tonumber(value) ~= nil then
  257. WalkSpeed = tonumber(value)
  258. task.spawn(function()
  259. while task.wait() do
  260. Player.Character.Humanoid.WalkSpeed = WalkSpeed
  261. end
  262. end)
  263. end
  264. end)
  265.  
  266. Home:addTextBox("Jump Power", "50"
  267. ,function(value)
  268. if tonumber(value) ~= nil then
  269. JumpPower = tonumber(value)
  270. task.spawn(function()
  271. while task.wait() do
  272. Player.Character.Humanoid.UseJumpPower = true
  273. Player.Character.Humanoid.JumpPower = JumpPower
  274. end
  275. end)
  276. end
  277. end)
  278.  
  279. Home:addToggle("Infinite Jumps",function(value)
  280. task.spawn(function()
  281. if value == true then
  282. InfiniteJumpingEnabled = true
  283. game:GetService("UserInputService").JumpRequest:connect(function()
  284. if InfiniteJumpingEnabled == true then
  285. Player.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
  286. end
  287. end)
  288. else
  289. InfiniteJumpingEnabled = false
  290. end
  291. end)
  292. end)
  293.  
  294. Home:addButton("Teleport", function(value)
  295.     task.spawn(function()
  296.         Player.Character.HumanoidRootPart.CFrame = Player.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,10)
  297.     end)
  298. end)
  299.  
  300. Home:addLabel("Player", "Actions for the Player")
  301.  
  302. Home:addToggle("Anti AFK Kick",function(value)
  303. task.spawn(function()
  304. if value == true then
  305. AntiKickEnabled = true
  306. while AntiKickEnabled == true do
  307.     Player.Idled:Connect(function()
  308.     if AntiKickEnabled == true then
  309.         game:GetService("VirtualUser"):CaptureController()
  310.         game:GetService("VirtualUser"):ClickButton2(Vector2.new())
  311.     end
  312.     end)
  313.     task.wait(10)
  314. end
  315. else
  316. AntiKickEnabled = false
  317. end
  318. end)
  319. end)
  320.  
  321. Home:addButton("Kick Yourself", function()
  322.     Player:Kick("Requested Kick from the Client")
  323. end)
  324.  
  325. Home:addButton("Rejoin", function()
  326.     game:GetService("TeleportService"):Teleport(game.PlaceId, Player)
  327. end)
  328.  
  329. Home:addLabel("Others", "Actions for other purposes")
  330.  
  331. Home:addTextBox("Hitbox Size", "5"
  332. ,function(value)
  333. task.spawn(function()
  334. if tonumber(value) ~= nil then
  335.     HitboxSize = value
  336.     for i,v in next, game:GetService('Players'):GetPlayers() do
  337.         if v.Name ~= game:GetService('Players').LocalPlayer.Name then
  338.             task.spawn(function()
  339.                 while task.wait(1) do
  340.                     if v.Character:FindFirstChild("HumanoidRootPart") then
  341.                         v.Character.HumanoidRootPart.Size = Vector3.new(HitboxSize,HitboxSize,HitboxSize)
  342.                         v.Character.HumanoidRootPart.Transparency = 0.8
  343.                         v.Character.HumanoidRootPart.Material = "Neon"
  344.                         v.Character.HumanoidRootPart.CanCollide = false
  345.                     end
  346.                 end
  347.             end)
  348.         end
  349.     end
  350. end
  351. end)
  352. end)
  353.  
  354. Home:addToggle("ESP", function(value)
  355.     if value == true then
  356.         IsTracking = true
  357.     else
  358.         IsTracking = false
  359.     end
  360. end)
  361.  
  362. local Universal = UI:addPage("Universal",2,false,6)
  363.  
  364. Universal:addLabel("Universal Scripts", "Executable scripts that works in most games")
  365.  
  366. Universal:addButton("Dex Explorer", function()
  367. loadstring(game:HttpGet("https://raw.githubusercontent.com/Babyhamsta/RBLX_Scripts/main/Universal/BypassedDarkDexV3.lua", true))()
  368. end)
  369.  
  370. Universal:addButton("Infinite Yield", function()
  371. loadstring(game:HttpGet("https://cdn.wearedevs.net/scripts/Infinite%20Yield.txt"))()
  372. end)
  373.  
  374. Universal:addButton("Remote Spy", function()
  375. loadstring(game:HttpGet("https://pastebin.com/raw/66NjbMN7",true))()
  376. end)
  377.  
  378. Universal:addLabel("Others", "Useful hubs that work in certain games")
  379.  
  380. Universal:addButton("[Hotel Elephant]", function()
  381. loadstring(game:HttpGet("https://pastebin.com/raw/iVCc6iwm"))()
  382. end)
  383.  
  384. Universal:addButton("[Zombie Lab]", function()
  385.     loadstring(game:HttpGet("https://raw.githubusercontent.com/sinret/rbxscript.com-scripts-reuploads-/main/zlab", true))()
  386. end)
  387.  
  388. Universal:addButton("[Break In]", function()
  389.     loadstring(game:HttpGet("https://raw.githubusercontent.com/Nikita365/Break-In-Story-/main/Break%20In%20Story%20Hub"))()
  390. end)
  391.  
  392. local Credits = UI:addPage("Credits",1,false,6)
  393.  
  394. Credits:addLabel("Credits", "Hud created by HappyH0lidays2021")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement