Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Universal Script --
- local Library = loadstring(game:HttpGet("https://pastebin.com/raw/jNS157AK"))()
- local Players = game:GetService("Players")
- local StarterGui = game:GetService("StarterGui")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local RunService = game:GetService("RunService")
- local InputService = game:GetService("UserInputService")
- local TeleportService = game:GetService("TeleportService")
- local GroupService = game:GetService("GroupService")
- local Chat = game:GetService("Chat")
- local Player = Players.LocalPlayer
- -- Variables --
- _G.HSpeed = 16
- _G.HJumpPower = 50
- local InfiniteJumps = false
- _G.HHitboxExpander = false
- _G.HHitboxSize = Vector3.new(7.5, 7.5, 7.5)
- local Gravity = 180
- local ChatSpam = false
- local SpamDelay = 1
- local SpamMessage = "Hello world!"
- local ScriptRunning = true
- -- Main --
- local Window = Library:CreateWindow("Universal Hub", "...")
- local Main = Window:addPage("Player", 5, true, 7.5)
- task.wait() -- Wait for a while to load
- local BackgroundSound = Instance.new("Sound", workspace)
- BackgroundSound.Name = "_bgsound"
- BackgroundSound.Looped = true
- local ScriptStarted = false
- local Transparency = true
- local NoClip = false
- local Player = game:GetService("Players").LocalPlayer
- local RealCharacter = Player.Character or Player.CharacterAdded:Wait()
- local IsInvisible = false
- RealCharacter.Archivable = true
- local FakeCharacter = RealCharacter:Clone()
- local Part
- Part = Instance.new("Part", workspace)
- Part.Anchored = true
- Part.Size = Vector3.new(200, 1, 200)
- Part.CFrame = CFrame.new(5000, 0, 5000)
- Part.CanCollide = true
- FakeCharacter.Parent = workspace
- FakeCharacter.HumanoidRootPart.CFrame = Part.CFrame * CFrame.new(0, 5, 0)
- for i, v in pairs(RealCharacter:GetChildren()) do
- if v:IsA("LocalScript") then
- local clone = v:Clone()
- clone.Disabled = true
- clone.Parent = FakeCharacter
- end
- end
- if Transparency then
- for i, v in pairs(FakeCharacter:GetDescendants()) do
- if v:IsA("BasePart") then
- v.BrickColor = BrickColor.new("Institutional white")
- v.Transparency = -1
- v.Material = Enum.Material.ForceField
- end
- end
- end
- local CanInvis = true
- local function RealCharacterDied()
- CanInvis = false
- RealCharacter:Destroy()
- RealCharacter = Player.Character
- CanInvis = true
- IsInvisible = false
- FakeCharacter:Destroy()
- workspace.CurrentCamera.CameraSubject = RealCharacter.Humanoid
- RealCharacter.Archivable = true
- FakeCharacter = RealCharacter:Clone()
- Part:Destroy()
- Part = Instance.new("Part", workspace)
- Part.Anchored = true
- Part.Size = Vector3.new(200, 1, 200)
- Part.CFrame = CFrame.new(5000, 0, 5000) --Set this to whatever you want, just far away from the map.
- Part.CanCollide = true
- FakeCharacter.Parent = workspace
- FakeCharacter.HumanoidRootPart.CFrame = Part.CFrame * CFrame.new(0, 5, 0)
- for i, v in pairs(RealCharacter:GetChildren()) do
- if v:IsA("LocalScript") then
- local clone = v:Clone()
- clone.Disabled = true
- clone.Parent = FakeCharacter
- end
- end
- if Transparency then
- for i, v in pairs(FakeCharacter:GetDescendants()) do
- if v:IsA("BasePart") then
- v.BrickColor = BrickColor.new("Institutional white")
- v.Transparency = -1
- v.Material = Enum.Material.ForceField
- end
- end
- end
- RealCharacter.Humanoid.Died:Connect(function()
- RealCharacter:Destroy()
- FakeCharacter:Destroy()
- end)
- Player.CharacterAppearanceLoaded:Connect(RealCharacterDied)
- end
- RealCharacter.Humanoid.Died:Connect(function()
- RealCharacter:Destroy()
- FakeCharacter:Destroy()
- end)
- Player.CharacterAppearanceLoaded:Connect(RealCharacterDied)
- local PseudoAnchor
- RunService.RenderStepped:Connect(
- function()
- if PseudoAnchor ~= nil then
- PseudoAnchor.CFrame = Part.CFrame * CFrame.new(0, 5, 0)
- end
- if NoClip then
- FakeCharacter.Humanoid:ChangeState(11)
- end
- end
- )
- PseudoAnchor = FakeCharacter.HumanoidRootPart
- local function SetInvisible()
- if IsInvisible == false then
- local StoredCF = RealCharacter.HumanoidRootPart.CFrame
- RealCharacter.HumanoidRootPart.CFrame = FakeCharacter.HumanoidRootPart.CFrame
- FakeCharacter.HumanoidRootPart.CFrame = StoredCF
- RealCharacter.Humanoid:UnequipTools()
- Player.Character = FakeCharacter
- workspace.CurrentCamera.CameraSubject = FakeCharacter.Humanoid
- PseudoAnchor = RealCharacter.HumanoidRootPart
- for i, v in pairs(FakeCharacter:GetChildren()) do
- if v:IsA("LocalScript") then
- v.Disabled = false
- end
- end
- IsInvisible = true
- else
- local StoredCF = FakeCharacter.HumanoidRootPart.CFrame
- FakeCharacter.HumanoidRootPart.CFrame = RealCharacter.HumanoidRootPart.CFrame
- RealCharacter.HumanoidRootPart.CFrame = StoredCF
- FakeCharacter.Humanoid:UnequipTools()
- Player.Character = RealCharacter
- workspace.CurrentCamera.CameraSubject = RealCharacter.Humanoid
- PseudoAnchor = FakeCharacter.HumanoidRootPart
- for i, v in pairs(FakeCharacter:GetChildren()) do
- if v:IsA("LocalScript") then
- v.Disabled = true
- end
- end
- IsInvisible = false
- end
- end
- local function SetSpeed()
- -- Speed
- while task.wait() do
- if (Player.Character ~= nil) and (ScriptRunning == true) then
- if (Player.Character:FindFirstChildOfClass("Humanoid") ~= nil) then
- Player.Character:FindFirstChildOfClass("Humanoid").WalkSpeed = _G.HSpeed
- end
- end
- end
- end
- local function SetJumpPower()
- -- Jump Power
- while task.wait() do
- if (Player.Character ~= nil) and (ScriptRunning == true) then
- if (Player.Character:FindFirstChildOfClass("Humanoid") ~= nil) then
- Player.Character:FindFirstChildOfClass("Humanoid").UseJumpPower = true
- Player.Character:FindFirstChildOfClass("Humanoid").JumpPower = _G.HJumpPower
- end
- end
- end
- end
- local function ChatSpammer()
- -- Spam the Chat
- local Remote = ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest
- while true do
- if (Player ~= nil) and (ChatSpam == true) and (ScriptRunning == true) then
- local Args = {
- [1] = SpamMessage,
- [2] = "All"
- }
- Remote:FireServer(unpack(Args))
- task.wait(SpamDelay)
- end
- task.wait()
- end
- end
- local function HitboxExpand()
- -- Get all players
- while task.wait(0.1) do
- if (HitboxExpander == true) and (ScriptRunning == true) then
- for _, Target in pairs(game.Players:GetPlayers()) do
- if (Target ~= Player) and (Target.Character ~= nil) and (Target.Character:FindFirstChild("HumanoidRootPart") ~= nil) then
- local HumanoidRootPart = Target.Character:FindFirstChild("HumanoidRootPart")
- HumanoidRootPart.Size = _G.HHitboxSize
- HumanoidRootPart.CanCollide = false
- HumanoidRootPart.Transparency = 1
- HumanoidRootPart.Material = Enum.Material.Neon
- HumanoidRootPart.BrickColor = Target.TeamColor
- if not HumanoidRootPart:FindFirstChild("_happyshighlight") then
- local Highlight = Instance.new("BoxHandleAdornment", HumanoidRootPart)
- Highlight.Name = "_happyshighlight"
- Highlight.Visible = true
- Highlight.AlwaysOnTop = true
- Highlight.Adornee = HumanoidRootPart
- Highlight.Size = _G.HHitboxSize
- Highlight.ZIndex = 0
- Highlight.AdornCullingMode = Enum.AdornCullingMode.Never
- Highlight.Transparency = 0.7
- Highlight.Color = Target.TeamColor
- else
- local Highlight = HumanoidRootPart:FindFirstChild("_happyshighlight")
- Highlight.Visible = true
- Highlight.AlwaysOnTop = true
- Highlight.Adornee = HumanoidRootPart
- Highlight.Size = _G.HHitboxSize
- Highlight.ZIndex = 0
- Highlight.AdornCullingMode = Enum.AdornCullingMode.Never
- Highlight.Transparency = 0.7
- Highlight.Color = Target.TeamColor
- end
- end
- end
- else
- for _, Target in pairs(game.Players:GetPlayers()) do
- if (Target.Character ~= nil) and (Target.Character:FindFirstChild("HumanoidRootPart") ~= nil) then
- local HumanoidRootPart = Target.Character:FindFirstChild("HumanoidRootPart")
- HumanoidRootPart.Size = Vector3.new(2, 2, 1)
- HumanoidRootPart.CanCollide = false
- HumanoidRootPart.Transparency = 1
- if HumanoidRootPart:FindFirstChild("_happyshighlight") then
- HumanoidRootPart:FindFirstChild("_happyshighlight"):Destroy()
- end
- end
- end
- end
- end
- end
- Main:addLabel("Basic Actions", "Actions for your Character")
- Main:addButton("Reset Character", function()
- if (Player.Character ~= nil) then
- Player.Character:FindFirstChildOfClass("Humanoid").Health = 0
- end
- end)
- Main:addTextBox("Speed", "...", function(Value)
- if (tonumber(Value) ~= nil) then
- _G.HSpeed = Value
- end
- end)
- Main:addTextBox("Jump Power", "...", function(Value)
- if (tonumber(Value) ~= nil) then
- _G.HJumpPower = Value
- end
- end)
- Main:addToggle("Infinite Jumps", function(Toggle)
- if (Toggle == true) then
- InfiniteJumps = true
- InputService.JumpRequest:Connect(function()
- if (InfiniteJumps == true) then
- Player.Character:FindFirstChildOfClass("Humanoid"):ChangeState("Jumping")
- end
- end)
- end
- end)
- Main:addToggle("Invisible | God Mode", function(Toggle)
- if CanInvis and RealCharacter and FakeCharacter then
- if RealCharacter:FindFirstChild("HumanoidRootPart") and FakeCharacter:FindFirstChild("HumanoidRootPart") then
- SetInvisible()
- end
- end
- end)
- Main:addLabel("Client Actions", "Actions for the Client")
- Main:addToggle("Hitbox Expander", function(Toggle)
- if (Toggle == false) then
- HitboxSize = Vector3.new(7.5, 7.5, 7.5) -- Set to default hitbox expanding size
- HitboxExpander = Toggle
- else
- HitboxExpander = Toggle
- end
- end)
- Main:addTextBox("Hitbox Size", "...", function(Value)
- if (tonumber(Value) ~= nil) and (HitboxExpander == true) then
- _G.HHitboxSize = Vector3.new(Value, Value, Value)
- end
- end)
- Main:addLabel("Server Actions", "Rejoin & Kick Yourself")
- Main:addButton("Rejoin", function()
- if (Player ~= nil) then
- TeleportService:Teleport(game.PlaceId, Player)
- end
- end)
- Main:addButton("Kick", function()
- if (Player ~= nil) then
- Player:Kick("Requested kick from the client")
- end
- end)
- Main:addLabel("Chat Spammer", "Automatically spams messages in the Chat")
- Main:addToggle("Chat Spam", function(Toggle)
- ChatSpam = true
- end)
- Main:addTextBox("Spam Message", "...", function(Value)
- SpamMessage = tostring(Value)
- end)
- Main:addTextBox("Spam Delay", "...", function(Value)
- if (tonumber(Value) ~= nil) then
- SpamDelay = tonumber(Value)
- end
- end)
- Main:addLabel("Info", "Copy your player and the game's info")
- Main:addButton("Copy Player ID", function()
- setclipboard(Player.UserId)
- print("Player ID Copied!")
- end)
- Main:addButton("Copy Creator ID", function()
- if game.CreatorType == Enum.CreatorType.Group then
- setclipboard(GroupService:GetGroupInfoAsync(game.CreatorId).Owner.Id)
- else
- setclipboard(game.CreatorId)
- end
- print("Creator ID Copied!")
- end)
- Main:addButton("Copy Place ID", function()
- setclipboard(game.GameId)
- print("Game ID Copied!")
- end)
- -- Sounds Page
- local Music = Window:addPage("Music", 5, false, 7.5)
- Music:addLabel("Background Music", "Enjoy your favorite ROBLOX music on the current game")
- Music:addTextBox("Custom Music", "...", function(ID)
- BackgroundSound.SoundId = "rbxassetid://"..ID
- BackgroundSound.Volume = 2
- BackgroundSound.PlaybackSpeed = 1
- BackgroundSound:Stop() -- Replace Current Sound
- BackgroundSound:Play() -- Play New Sound
- end)
- -- Credits
- local Credits = Window:addPage("Credits", 1, false, 7.5)
- Credits:addLabel("Credits", "Hud created by HappyH0lidays2021")
- Credits:addButton("Reset Gui", function()
- ScriptRunning = false
- loadstring(game:HttpGet("https://pastebin.com/raw/MqjU7wKz"))()
- end)
- -- Start other functions
- task.spawn(SetSpeed)
- task.spawn(SetJumpPower)
- task.spawn(HitboxExpand)
- task.spawn(ChatSpammer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement