Advertisement
ProScripter29

Happy's Universal Hud

Dec 10th, 2022 (edited)
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 13.36 KB | Gaming | 0 0
  1. -- Coded by HappyH0lidays2021
  2.  
  3. -- (VERY IMPORTANT) UI Library
  4. local Library = loadstring(game:HttpGet("https://pastebin.com/raw/jNS157AK"))()
  5.  
  6. -- Services
  7. local Players = game:GetService("Players")
  8. local Lighting = game:GetService("Lighting")
  9.  
  10. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  11. local StarterGui = game:GetService("StarterGui")
  12. local StarterPlayers = game:GetService("StarterPlayer")
  13.  
  14. local UserInputService = game:GetService("UserInputService")
  15. local VirtualUser = game:GetService("VirtualUser")
  16.  
  17. local TeleportService = game:GetService("TeleportService")
  18.  
  19. -- Variables
  20.  
  21. local Window = Library:CreateWindow("Happy's Hud [BETA]", "...")
  22.  
  23. local Main = Window:addPage("Main", 4, true, 7.5)
  24.  
  25. local Player = Players.LocalPlayer
  26.  
  27. local WalkSpeed = StarterPlayers.CharacterWalkSpeed -- Set to the default WalkSpeed
  28. local JumpPower = StarterPlayers.CharacterJumpPower -- Set to the default JumpPower
  29. local HitboxSize = 5 -- Set to the default Hitbox Size
  30.  
  31. local InfJumpsEnabled = false
  32. local DisableAFKKick = false
  33. local DiscoEnabled = false
  34.  
  35. local ChatSpam = false
  36. local ChatSpamMsg = "Test"
  37. local ChatSpamDelay = 1
  38.  
  39. local ScriptStarted = false
  40. local Transparency = true --Will make you slightly transparent when you are invisible. No reason to disable.
  41. local NoClip = true --Will make your fake character no clip.
  42.  
  43. local Player = game:GetService("Players").LocalPlayer
  44. local RealCharacter = Player.Character or Player.CharacterAdded:Wait()
  45.  
  46. local IsInvisible = false
  47.  
  48. RealCharacter.Archivable = true
  49. local FakeCharacter = RealCharacter:Clone()
  50. local Part
  51. Part = Instance.new("Part", workspace)
  52. Part.Anchored = true
  53. Part.Size = Vector3.new(200, 1, 200)
  54. Part.CFrame = CFrame.new(5000, 0, 5000) --Set this to whatever you want, just far away from the map.
  55. Part.CanCollide = true
  56. FakeCharacter.Parent = workspace
  57. FakeCharacter.HumanoidRootPart.CFrame = Part.CFrame * CFrame.new(0, 5, 0)
  58.  
  59. for i, v in pairs(RealCharacter:GetChildren()) do
  60.     if v:IsA("LocalScript") then
  61.         local clone = v:Clone()
  62.         clone.Disabled = true
  63.         clone.Parent = FakeCharacter
  64.     end
  65. end
  66.  
  67. if Transparency then
  68.     for i, v in pairs(FakeCharacter:GetDescendants()) do
  69.         if v:IsA("BasePart") then
  70.             v.BrickColor = BrickColor.new("Institutional white")
  71.             v.Transparency = -1
  72.             v.Material = Enum.Material.ForceField
  73.         end
  74.     end
  75. end
  76.  
  77. local CanInvis = true
  78.  
  79. local function RealCharacterDied()
  80.     CanInvis = false
  81.     RealCharacter:Destroy()
  82.     RealCharacter = Player.Character
  83.     CanInvis = true
  84.     IsInvisible = false
  85.     FakeCharacter:Destroy()
  86.     workspace.CurrentCamera.CameraSubject = RealCharacter.Humanoid
  87.  
  88.     RealCharacter.Archivable = true
  89.     FakeCharacter = RealCharacter:Clone()
  90.     Part:Destroy()
  91.     Part = Instance.new("Part", workspace)
  92.     Part.Anchored = true
  93.     Part.Size = Vector3.new(200, 1, 200)
  94.     Part.CFrame = CFrame.new(9999, 9999, 9999) --Set this to whatever you want, just far away from the map.
  95.     Part.CanCollide = true
  96.     FakeCharacter.Parent = workspace
  97.     FakeCharacter.HumanoidRootPart.CFrame = Part.CFrame * CFrame.new(0, 5, 0)
  98.  
  99.     for i, v in pairs(RealCharacter:GetChildren()) do
  100.         if v:IsA("LocalScript") then
  101.             local clone = v:Clone()
  102.             clone.Disabled = true
  103.             clone.Parent = FakeCharacter
  104.         end
  105.     end
  106.     if Transparency then
  107.         for i, v in pairs(FakeCharacter:GetDescendants()) do
  108.             if v:IsA("BasePart") then
  109.                 v.BrickColor = BrickColor.new("Institutional white")
  110.                 v.Transparency = -1
  111.                 v.Material = Enum.Material.ForceField
  112.             end
  113.         end
  114.     end
  115.     RealCharacter.Humanoid.Died:Connect(function()
  116.         RealCharacter:Destroy()
  117.         FakeCharacter:Destroy()
  118.     end)
  119.     Player.CharacterAppearanceLoaded:Connect(RealCharacterDied)
  120. end
  121.  
  122. RealCharacter.Humanoid.Died:Connect(function()
  123.     RealCharacter:Destroy()
  124.     FakeCharacter:Destroy()
  125. end)
  126.  
  127. Player.CharacterAppearanceLoaded:Connect(RealCharacterDied)
  128.  
  129. local PseudoAnchor
  130.  
  131. game:GetService("RunService").RenderStepped:Connect(
  132.     function()
  133.         if PseudoAnchor ~= nil then
  134.             PseudoAnchor.CFrame = Part.CFrame * CFrame.new(0, 5, 0)
  135.         end
  136.         if NoClip then
  137.             FakeCharacter.Humanoid:ChangeState(11)
  138.         end
  139.     end
  140. )
  141.  
  142. PseudoAnchor = FakeCharacter.HumanoidRootPart
  143.  
  144. local function Invisible()
  145.     if IsInvisible == false then
  146.         local StoredCF = RealCharacter.HumanoidRootPart.CFrame
  147.         RealCharacter.HumanoidRootPart.CFrame = FakeCharacter.HumanoidRootPart.CFrame
  148.         FakeCharacter.HumanoidRootPart.CFrame = StoredCF
  149.         RealCharacter.Humanoid:UnequipTools()
  150.         Player.Character = FakeCharacter
  151.         workspace.CurrentCamera.CameraSubject = FakeCharacter.Humanoid
  152.         PseudoAnchor = RealCharacter.HumanoidRootPart
  153.         for i, v in pairs(FakeCharacter:GetChildren()) do
  154.             if v:IsA("LocalScript") then
  155.                 v.Disabled = false
  156.             end
  157.         end
  158.  
  159.         IsInvisible = true
  160.     else
  161.         local StoredCF = FakeCharacter.HumanoidRootPart.CFrame
  162.         FakeCharacter.HumanoidRootPart.CFrame = RealCharacter.HumanoidRootPart.CFrame
  163.  
  164.         RealCharacter.HumanoidRootPart.CFrame = StoredCF
  165.  
  166.         FakeCharacter.Humanoid:UnequipTools()
  167.         Player.Character = RealCharacter
  168.         workspace.CurrentCamera.CameraSubject = RealCharacter.Humanoid
  169.         PseudoAnchor = FakeCharacter.HumanoidRootPart
  170.         for i, v in pairs(FakeCharacter:GetChildren()) do
  171.             if v:IsA("LocalScript") then
  172.                 v.Disabled = true
  173.             end
  174.         end
  175.         IsInvisible = false
  176.     end
  177. end
  178.  
  179. local function UpdateWalkSpeed()
  180.     if Player.Character and Player.Character:FindFirstChild("Humanoid") then
  181.         local Humanoid = Player.Character:FindFirstChildOfClass("Humanoid")
  182.         Humanoid.WalkSpeed = WalkSpeed
  183.     end
  184. end
  185.  
  186. local function UpdateJumpPower()
  187.     if Player.Character and Player.Character:FindFirstChildOfClass("Humanoid") then
  188.         local Humanoid = Player.Character:FindFirstChildOfClass("Humanoid")
  189.         Humanoid.UseJumpPower = true -- Incase this is not set to true
  190.         Humanoid.JumpPower = JumpPower
  191.     end
  192. end
  193.  
  194. Main:addLabel("Character", "Actions for the Character")
  195.  
  196. Main:addButton("Reset Character", function()
  197.     Player.Character:FindFirstChildOfClass("Humanoid").Health = 0
  198. end)
  199.  
  200. Main:addTextBox("Speed", "16", function(Value)
  201.     if (tonumber(Value) ~= nil) then -- Should be a VALID number
  202.         WalkSpeed = tonumber(Value)
  203.     else
  204.         warn("Invalid Number")
  205.     end
  206. end)
  207.  
  208. Main:addTextBox("Jump Power", "50", function(Value)
  209.     if (tonumber(Value) ~= nil) then -- Should be a VALID number
  210.         JumpPower = tonumber(Value)
  211.     else
  212.         warn("Invalid Number")
  213.     end
  214. end)
  215.  
  216. Main:addToggle("Infinite Jumps", function(Toggle)
  217.     if (Toggle == true) then -- If Toggle is set to TRUE
  218.         InfJumpsEnabled = true
  219.         print("Infinite Jumps is set to True")
  220.         UserInputService.JumpRequest:Connect(function()
  221.             if (InfJumpsEnabled == true) then
  222.                 Player.Character:FindFirstChildOfClass("Humanoid"):ChangeState("Jumping")
  223.             end
  224.         end)
  225.     end
  226. end)
  227.  
  228. Main:addToggle("Invisible", function(Toggle)
  229.     if CanInvis and RealCharacter and FakeCharacter then
  230.         if RealCharacter:FindFirstChild("HumanoidRootPart") and FakeCharacter:FindFirstChild("HumanoidRootPart") then
  231.             Invisible()
  232.         end
  233.     end
  234. end)
  235.  
  236. Main:addLabel("Player", "Actions for the Player")
  237.  
  238. Main:addButton("Rejoin", function()
  239.     TeleportService:Teleport(game.PlaceId, Player)
  240. end)
  241.  
  242. Main:addButton("Kick", function()
  243.     Player:Kick("Requested kick from the Client")
  244. end)
  245.  
  246. Main:addToggle("Disable AFK Kick", function(Toggle)
  247.     if (Toggle == true) then
  248.         DisableAFKKick = true
  249.         print("Disable AFK Kick is set to True")
  250.         Player.Idled:Connect(function() -- When player is IDLED for around 2 minutes
  251.             if (DisableAFKKick == true) then
  252.                 VirtualUser:ClickButton2(Vector2.new()) -- Make the user do a fake right click
  253.                 Player.Character:FindFirstChildOfClass("Humanoid"):ChangeState("Jumping") -- Make character jump incase
  254.                 print("Player Idled")
  255.             end
  256.         end)
  257.     end
  258. end)
  259.  
  260. Main:addLabel("Lighting", "Modify the game's Lighting")
  261.  
  262. Main:addButton("Remove Fog", function()
  263.     if Lighting:FindFirstChildOfClass("Atmosphere") then
  264.         Lighting:FindFirstChildOfClass("Atmosphere"):Destroy()
  265.     end
  266.     if Lighting:FindFirstChildOfClass("DepthOfFieldEffect") then
  267.         Lighting:FindFirstChildOfClass("DepthOfFieldEffect"):Destroy()
  268.     end
  269.     Lighting.FogStart = 100000
  270.     Lighting.FogEnd = 100000
  271.     print("Removed Fog Effects")
  272. end)
  273.  
  274. Main:addButton("Brighten Map", function()
  275.     Lighting.Brightness = 6.5
  276.     print("Map brightened")
  277. end)
  278.  
  279. Main:addTextBox("Time Of Day", "14", function(Value)
  280.     if (tonumber(Value) ~= nil) then -- Should be a VALID number
  281.         Lighting.ClockTime = tonumber(Value)
  282.     else
  283.         warn("Invalid Number")
  284.     end
  285. end)
  286.  
  287. Main:addButton("Realism", function()
  288.     -- Realism Atmosphere
  289.     if Lighting:FindFirstChildOfClass("Atmosphere") then
  290.         Lighting:FindFirstChildOfClass("Atmosphere"):Destroy()
  291.     end
  292.     Lighting.Brightness = 4
  293.     Lighting.ClockTime = 16
  294.     Lighting.GlobalShadows = true
  295.     Lighting.ShadowSoftness = 0
  296.     local Atmosphere = Instance.new("Atmosphere", Lighting)
  297.     Atmosphere.Name = "_happysgamerealism"
  298.     Atmosphere.Density = 0.5
  299.     -- ColorCorrection to increase contrast and add a bit of brightness
  300.     if Lighting:FindFirstChildOfClass("ColorCorrectionEffect") then
  301.         Lighting:FindFirstChildOfClass("ColorCorrectionEffect"):Destroy()
  302.     end
  303.     local ColorCorrection = Instance.new("ColorCorrectionEffect", Lighting)
  304.     ColorCorrection.Name = "_happysgamerealism"
  305.     ColorCorrection.Brightness = 0.2
  306.     ColorCorrection.Contrast = 1.3
  307.     ColorCorrection.Saturation = 0.3
  308.     ColorCorrection.TintColor = Color3.fromRGB(220, 186, 177)
  309.     ColorCorrection.Enabled = true
  310.     -- Add DepthOfField for even more realism
  311.     if Lighting:FindFirstChildOfClass("DepthOfFieldEffect") then
  312.         Lighting:FindFirstChildOfClass("DepthOfFieldEffect"):Destroy()
  313.     end
  314.     local DepthOfField = Instance.new("DepthOfFieldEffect", Lighting)
  315.     DepthOfField.Name = "_happysgamerealism"
  316.     DepthOfField.FarIntensity = 0.5
  317.     DepthOfField.FocusDistance = 65
  318.     DepthOfField.InFocusRadius = 40
  319.     DepthOfField.NearIntensity = 0.05
  320.     DepthOfField.Enabled = true
  321.     -- Add Sun Rays
  322.     local SunRays = Instance.new("SunRaysEffect", Lighting)
  323.     SunRays.Name = "_happysgamerealism"
  324.     SunRays.Intensity = 0.2
  325.     SunRays.Spread = 1
  326.     SunRays.Enabled = true
  327.     print("Realism Loaded")
  328. end)
  329.  
  330. Main:addToggle("Disco", function(Toggle)
  331.     if (Toggle == true) then
  332.         DiscoEnabled = true
  333.         local ColorEffect = Instance.new("ColorCorrectionEffect", game.Lighting)
  334.         ColorEffect.Name = "DiscoEffect"
  335.         ColorEffect.Enabled = true
  336.         ColorEffect.Contrast = 1
  337.         while (DiscoEnabled == true) do
  338.             ColorEffect.TintColor = Color3.fromHSV((tick() % 7/7), 1, 1)
  339.             task.wait()
  340.         end
  341.         ColorEffect:Destroy()
  342.     else
  343.         DiscoEnabled = false
  344.     end
  345. end)
  346.  
  347. Main:addLabel("Others", "Other Actions for the Client")
  348.  
  349. Main:addTextBox("Hitbox Size", "5", function(Value)
  350.     if (tonumber(Value) ~= nil) then
  351.         HitboxSize = tonumber(Value)
  352.         task.spawn(function()
  353.             while task.wait(0.1) do
  354.                 for _, Target in pairs(Players:GetPlayers()) do
  355.                     if Target ~= Player then
  356.                         if Target.Character and Target.Character:FindFirstChild("HumanoidRootPart") then
  357.                             Target.Character.HumanoidRootPart.Size = Vector3.new(HitboxSize, HitboxSize, HitboxSize)
  358.                             Target.Character.HumanoidRootPart.Material = Enum.Material.Neon
  359.                             Target.Character.HumanoidRootPart.Transparency = 1
  360.                             Target.Character.HumanoidRootPart.CanCollide = false
  361.                         else
  362.                             warn("Player "..Target.Name.." currently does not have a HumanoidRootPart")
  363.                         end
  364.                     end
  365.                 end
  366.             end
  367.         end)
  368.     end
  369. end)
  370.  
  371. Main:addTextBox("Gravity", "180", function(Value)
  372.     if (tonumber(Value) ~= nil) then -- Should be a VALID number
  373.         workspace.Gravity = tonumber(Value)
  374.     else
  375.         warn("Invalid Number")
  376.     end
  377. end)
  378.  
  379. local Universal = Window:addPage("Universal", 2, false, 7.5)
  380.  
  381. Universal:addLabel("Universal Scripts", "Execute universal scripts with one tap")
  382.  
  383. Universal:addButton("Dex Explorer", function()
  384.     loadstring(game:HttpGet("https://cdn.wearedevs.net/scripts/Dex%20Explorer.txt"))()
  385. end)
  386.  
  387. Universal:addButton("Infinite Yield", function()
  388.     loadstring(game:HttpGet("https://cdn.wearedevs.net/scripts/Infinite%20Yield.txt"))()
  389. end)
  390.  
  391. Universal:addButton("Remote Spy", function()
  392.     loadstring(game:HttpGet("https://pastebin.com/raw/66NjbMN7",true))()
  393. end)
  394.  
  395. Universal:addLabel("Chat Spammer", "Spam chat messages without doing anything")
  396.  
  397. Universal:addToggle("Chat Spam", function(Toggle)
  398.     ChatSpam = Toggle
  399. end)
  400.  
  401. Universal:addTextBox("Chat Spam Message", "Test", function(Value)
  402.     ChatSpamMsg = tostring(Value)
  403. end)
  404.  
  405. Universal:addTextBox("Chat Spam Delay", "1", function(Value)
  406.     if (tonumber(Value) ~= nil) then -- Should be a VALID number
  407.         ChatSpamDelay = tonumber(Value)
  408.     else
  409.         warn("Invalid Number")
  410.     end
  411. end)
  412.  
  413. Universal:addLabel("Others", "Other executable Scripts/Actions")
  414.  
  415. Universal:addButton("[Hotel Elephant]", function()
  416.     loadstring(game:HttpGet("https://pastebin.com/raw/iVCc6iwm"))()
  417. end)
  418.  
  419. local Credits = Window:addPage("Credits", 1, false, 7.5)
  420.  
  421. Credits:addLabel("Credits", "Hud created by HappyH0lidays2021")
  422.  
  423. -- Main Function
  424.  
  425. local function MainFunction()
  426.     while task.wait(0.1) do
  427.         UpdateWalkSpeed()
  428.         UpdateJumpPower()
  429.     end
  430. end
  431.  
  432. -- Chat Spam Function
  433.  
  434. local function ChatSpamFunction()
  435.     while true do
  436.         if (ChatSpam == true) then
  437.             local Arguments = {
  438.                 [1] = ChatSpamMsg,
  439.                 [2] = "All"
  440.             }
  441.             ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(unpack(Arguments))
  442.             task.wait(ChatSpamDelay)
  443.         end
  444.         task.wait()
  445.     end
  446. end
  447.  
  448. task.spawn(MainFunction)
  449. task.spawn(ChatSpamFunction)
  450.  
  451. print(" - HappyH0lidays2021 was here...") -- Test Print
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement