--[[ WindHub — a WindUI feature hub Loads WindUI from GitHub and builds a multi-tab UI with client-side features. Toggle key: RightShift (changeable in Settings) ]] local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local Lighting = game:GetService("Lighting") local TweenService = game:GetService("TweenService") local TeleportService = game:GetService("TeleportService") local SoundService = game:GetService("SoundService") local Workspace = workspace local LocalPlayer = Players.LocalPlayer local Mouse = LocalPlayer:GetMouse() -------------------------------------------------------------------- -- Small helpers -------------------------------------------------------------------- local function getCharacter() return LocalPlayer.Character end local function getHumanoid() local char = LocalPlayer.Character return char and char:FindFirstChildOfClass("Humanoid") end local function getRoot() local char = LocalPlayer.Character if not char then return nil end return char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso") end local function isTextBoxFocused() local ok, focused = pcall(function() return UserInputService:GetFocusedTextBox() ~= nil end) return ok and focused end local function safePlaceName() local ok, info = pcall(function() return game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId) end) return ok and info and info.Name or "this place" end local function fmtNumber(n) return tostring(math.floor(n * 100 + 0.5) / 100) end -------------------------------------------------------------------- -- Feature plumbing -------------------------------------------------------------------- local Connections = {} local Active = {} local Cleanups = {} local Restorers = {} local function disconnectList(list) for _, item in ipairs(list) do pcall(function() item:Disconnect() end) end table.clear(list) end local function stopFeature(name) local list = Active[name] if list then disconnectList(list) Active[name] = nil end local cleanup = Cleanups[name] if cleanup then Cleanups[name] = nil pcall(cleanup) end end local function startFeature(name, fn) stopFeature(name) local list = {} Active[name] = list fn(function(connection) table.insert(list, connection) return connection end, function(cleanup) Cleanups[name] = cleanup end) end local function setFeature(name, enabled, fn) if enabled then startFeature(name, fn) else stopFeature(name) end end local function onUnload(fn) table.insert(Restorers, fn) end local function connect(signal, fn) local connection = signal:Connect(fn) table.insert(Connections, connection) return connection end -------------------------------------------------------------------- -- State -------------------------------------------------------------------- local Settings = { WalkSpeed = 16, JumpPower = 50, HipHeight = 2, FlySpeed = 70, TweenSpeed = 90, SprintSpeed = 60, SpinSpeed = 8, FreecamSpeed = 60, EspColor = Color3.fromRGB(0, 170, 255), AuraColor = Color3.fromRGB(0, 170, 255), } local State = { Fly = false, Esp = false, Ghost = false, Anchor = false, Rainbow = false, Particles = false, Trail = false, Aura = false, Freecam = false, TimeOfDay = 14, } local EspHighlights = {} local EspNames = {} local FlyBody = { velocity = nil, gyro = nil, conn = nil } local XrayBackup = {} local LightingBackup = nil local SkyBackup = nil local ParticleEmitters = {} local Music = { sound = nil } local Waypoints = {} local WindUI local function notify(title, content, duration, icon) if WindUI and WindUI.Notify then pcall(function() WindUI:Notify({ Title = title, Content = content, Duration = duration or 4, Icon = icon or "info", }) end) end end -------------------------------------------------------------------- -- Character -------------------------------------------------------------------- local function applyCharacterSettings() local char = getCharacter() local humanoid = getHumanoid() if not char or not humanoid then return end humanoid.WalkSpeed = Settings.WalkSpeed humanoid.JumpPower = Settings.JumpPower if humanoid.RigType == Enum.HumanoidRigType.R15 then humanoid.HipHeight = Settings.HipHeight end if State.Ghost then for _, part in ipairs(char:GetDescendants()) do if part:IsA("BasePart") then part.LocalTransparencyModifier = 0.85 end end end end connect(LocalPlayer.CharacterAdded, function() task.wait(0.35) applyCharacterSettings() if State.Anchor then local root = getRoot() if root then root.Anchored = true end end if State.Fly then startFly() end end) local function setWalkSpeed(value) Settings.WalkSpeed = value local humanoid = getHumanoid() if humanoid then humanoid.WalkSpeed = value end end local function setJumpPower(value) Settings.JumpPower = value local humanoid = getHumanoid() if humanoid then humanoid.JumpPower = value end end local function setHipHeight(value) Settings.HipHeight = value local humanoid = getHumanoid() if humanoid and humanoid.RigType == Enum.HumanoidRigType.R15 then humanoid.HipHeight = value end end local function resetCharacter() local humanoid = getHumanoid() if humanoid then humanoid.Health = 0 end end -------------------------------------------------------------------- -- Fly -------------------------------------------------------------------- local function stopFly() if FlyBody.conn then FlyBody.conn:Disconnect() FlyBody.conn = nil end if FlyBody.velocity then FlyBody.velocity:Destroy() FlyBody.velocity = nil end if FlyBody.gyro then FlyBody.gyro:Destroy() FlyBody.gyro = nil end local humanoid = getHumanoid() if humanoid then humanoid.PlatformStand = false end end local function startFly() stopFly() local root = getRoot() local humanoid = getHumanoid() if not root or not humanoid then notify("Fly", "Character is not loaded yet.", 3, "alert-triangle") return false end humanoid.PlatformStand = true local velocity = Instance.new("BodyVelocity") velocity.Name = "WindHubFly" velocity.MaxForce = Vector3.new(9e9, 9e9, 9e9) velocity.Velocity = Vector3.new(0, 0, 0) velocity.Parent = root FlyBody.velocity = velocity local gyro = Instance.new("BodyGyro") gyro.Name = "WindHubFlyGyro" gyro.MaxTorque = Vector3.new(9e9, 9e9, 9e9) gyro.P = 12500 gyro.D = 500 gyro.Parent = root FlyBody.gyro = gyro FlyBody.conn = RunService.RenderStepped:Connect(function() local char = getCharacter() if not char or not root.Parent then stopFly() return end local camera = Workspace.CurrentCamera local direction = Vector3.new(0, 0, 0) if UserInputService:IsKeyDown(Enum.KeyCode.W) then direction += camera.CFrame.LookVector end if UserInputService:IsKeyDown(Enum.KeyCode.S) then direction -= camera.CFrame.LookVector end if UserInputService:IsKeyDown(Enum.KeyCode.D) then direction += camera.CFrame.RightVector end if UserInputService:IsKeyDown(Enum.KeyCode.A) then direction -= camera.CFrame.RightVector end if UserInputService:IsKeyDown(Enum.KeyCode.Space) then direction += Vector3.new(0, 1, 0) end if UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) then direction -= Vector3.new(0, 1, 0) end if direction.Magnitude > 0 then direction = direction.Unit end velocity.Velocity = direction * Settings.FlySpeed gyro.CFrame = camera.CFrame end) task.delay(0.2, function() if FlyBody.conn then notify("Fly enabled", "WASD to move · Space up · LeftCtrl down", 4, "plane") end end) return true end onUnload(stopFly) -------------------------------------------------------------------- -- Noclip / ghost -------------------------------------------------------------------- local function setNoCollide(enabled) setFeature("noclip", enabled, function(add) add(RunService.Stepped:Connect(function() local char = getCharacter() if not char then return end for _, part in ipairs(char:GetDescendants()) do if part:IsA("BasePart") and part.CanCollide then part.CanCollide = false end end end)) end) if not enabled then local char = getCharacter() if char then for _, part in ipairs(char:GetDescendants()) do if part:IsA("BasePart") then part.CanCollide = part.Name ~= "HumanoidRootPart" end end end end end local function setGhost(enabled) State.Ghost = enabled setFeature("ghost", enabled, function(add) add(RunService.RenderStepped:Connect(function() local char = getCharacter() if not char then return end for _, part in ipairs(char:GetDescendants()) do if part:IsA("BasePart") then part.LocalTransparencyModifier = 0.85 end end end)) end) if not enabled then local char = getCharacter() if char then for _, part in ipairs(char:GetDescendants()) do if part:IsA("BasePart") then part.LocalTransparencyModifier = 0 end end end end end -------------------------------------------------------------------- -- Character extras -------------------------------------------------------------------- local function setInfiniteJump(enabled) setFeature("infiniteJump", enabled, function(add) add(UserInputService.JumpRequest:Connect(function() local humanoid = getHumanoid() if humanoid then humanoid:ChangeState(Enum.HumanoidStateType.Jumping) end end)) end) end local function setHealthRegen(enabled) setFeature("regen", enabled, function(add) add(RunService.Heartbeat:Connect(function() local humanoid = getHumanoid() if humanoid and humanoid.Health > 0 and humanoid.Health < humanoid.MaxHealth then humanoid.Health = humanoid.MaxHealth end end)) end) end local function setGodMode(enabled) local humanoid = getHumanoid() if not humanoid then return end if enabled then humanoid.MaxHealth = 1e9 humanoid.Health = 1e9 else humanoid.MaxHealth = 100 humanoid.Health = math.min(humanoid.Health, 100) end end local function setSpin(enabled) setFeature("spin", enabled, function(add, cleanup) local root = getRoot() local humanoid = getHumanoid() if not root then return end local angular = Instance.new("BodyAngularVelocity") angular.Name = "WindHubSpin" angular.MaxTorque = Vector3.new(1e9, 1e9, 1e9) angular.AngularVelocity = Vector3.new(0, Settings.SpinSpeed, 0) angular.Parent = root if humanoid then humanoid.AutoRotate = false end local function changed() if angular.Parent then angular.AngularVelocity = Vector3.new(0, Settings.SpinSpeed, 0) end end add(RunService.Heartbeat:Connect(changed)) cleanup(function() angular:Destroy() local hum = getHumanoid() if hum then hum.AutoRotate = true end end) end) end local function setAnchor(enabled) State.Anchor = enabled local root = getRoot() if root then root.Anchored = enabled end end local function setRainbow(enabled) State.Rainbow = enabled setFeature("rainbow", enabled, function(add) add(RunService.RenderStepped:Connect(function() local char = getCharacter() if not char then return end local colors = char:FindFirstChild("Body Colors") or char:FindFirstChildOfClass("BodyColors") if not colors then return end local color = Color3.fromHSV((tick() * 0.35) % 1, 0.85, 1) for _, property in ipairs({ "HeadColor3", "TorsoColor3", "LeftArmColor3", "RightArmColor3", "LeftLegColor3", "RightLegColor3", }) do pcall(function() colors[property] = color end) end end)) end) end -------------------------------------------------------------------- -- Particles / cosmetics -------------------------------------------------------------------- local Particles = { fire = { Texture = "rbxassetid://258128096", Color = Color3.fromRGB(255, 120, 20), Size = 2.2, Rate = 45 }, sparkles = { Texture = "rbxasset://textures/particles/sparkles_main.dds", Color = Color3.fromRGB(255, 255, 255), Size = 0.6, Rate = 60 }, smoke = { Texture = "rbxasset://textures/particles/smoke_main.dds", Color = Color3.fromRGB(180, 180, 180), Size = 3, Rate = 25 }, hearts = { Texture = "rbxasset://textures/particles/sparkles_main.dds", Color = Color3.fromRGB(255, 90, 160), Size = 1.2, Rate = 25 }, } local function clearParticles() for _, emitter in ipairs(ParticleEmitters) do pcall(function() emitter:Destroy() end) end table.clear(ParticleEmitters) end local function setFootParticles(kind, enabled) State.Particles = enabled stopFeature("particles") clearParticles() if not enabled then return end local preset = Particles[kind] local char = getCharacter() if not preset or not char then return end local feet local humanoid = char:FindFirstChildOfClass("Humanoid") if humanoid and humanoid.RigType == Enum.HumanoidRigType.R6 then feet = { char:FindFirstChild("Left Leg"), char:FindFirstChild("Right Leg") } else feet = { char:FindFirstChild("LeftFoot"), char:FindFirstChild("RightFoot") } end for _, foot in ipairs(feet) do if foot then local emitter = Instance.new("ParticleEmitter") emitter.Name = "WindHubParticles" emitter.Texture = preset.Texture emitter.Color = ColorSequence.new(preset.Color) emitter.Size = NumberSequence.new(preset.Size) emitter.Transparency = NumberSequence.new({ NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 1), }) emitter.Lifetime = NumberRange.new(0.4, 0.9) emitter.Rate = preset.Rate emitter.Speed = NumberRange.new(1, 3) emitter.SpreadAngle = Vector2.new(180, 180) emitter.Enabled = true emitter.Parent = foot table.insert(ParticleEmitters, emitter) end end startFeature("particles", function(_, cleanup) cleanup(clearParticles) end) end local function setTrail(enabled) State.Trail = enabled stopFeature("trail") local root = getRoot() local char = getCharacter() if not enabled or not root or not char then return end local attachment0 = Instance.new("Attachment") attachment0.Name = "WindHubTrailA" attachment0.Position = Vector3.new(1.2, 0, 0) attachment0.Parent = root local attachment1 = Instance.new("Attachment") attachment1.Name = "WindHubTrailB" attachment1.Position = Vector3.new(-1.2, 0, 0) attachment1.Parent = root local trail = Instance.new("Trail") trail.Name = "WindHubTrail" trail.Attachment0 = attachment0 trail.Attachment1 = attachment1 trail.Lifetime = 0.45 trail.MinLength = 0 trail.WidthScale = NumberSequence.new({ NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 0), }) trail.Color = ColorSequence.new(Settings.EspColor) trail.Transparency = NumberSequence.new({ NumberSequenceKeypoint.new(0, 0.25), NumberSequenceKeypoint.new(1, 1), }) trail.Parent = root startFeature("trail", function(_, cleanup) cleanup(function() trail:Destroy() attachment0:Destroy() attachment1:Destroy() end) end) end local function setAura(enabled) State.Aura = enabled stopFeature("aura") local root = getRoot() if not enabled or not root then return end local light = Instance.new("PointLight") light.Name = "WindHubAura" light.Color = Settings.AuraColor light.Range = 14 light.Brightness = 2 light.Shadows = true light.Parent = root startFeature("aura", function(_, cleanup) cleanup(function() light:Destroy() end) end) end local function playEmote(name) local char = getCharacter() local animate = char and char:FindFirstChild("Animate") if animate and animate:FindFirstChild("PlayEmote") then local ok = pcall(function() animate.PlayEmote:Invoke(name) end) if not ok then pcall(function() animate:PlayEmote(name) end) end elseif char and getHumanoid() then getHumanoid():ChangeState(Enum.HumanoidStateType.Landed) notify("Emotes", "This character has no Animate script.", 3, "alert-triangle") end end local function explosionFx() local root = getRoot() if not root then return end local explosion = Instance.new("Explosion") explosion.Position = root.Position explosion.BlastRadius = 10 explosion.BlastPressure = 0 explosion.DestroyJointRadiusPercent = 0 explosion.Visible = true explosion.Parent = Workspace end -------------------------------------------------------------------- -- Animation packs -------------------------------------------------------------------- -- A Roblox animation pack is sold as wrapper assets that only the Animate -- script can use, so each entry below points at the real clip behind the -- wrapper. Every clip was verified to load and play on an R15 character. local AnimationPacks = { { Name = "Zombie", Idle = 10921344533, Walk = 10921355261, Run = 616163682, Jump = 10921351278, Fall = 10921350320, Climb = 10921343576, Swim = 10921352344 }, { Name = "Toy", Idle = 10921301576, Walk = 10921312010, Run = 10921306285, Jump = 10921308158, Fall = 10921307241, Climb = 10921300839, Swim = 10921309319 }, { Name = "Robot", Idle = 10921248039, Walk = 10921255446, Run = 10921250460, Jump = 10921252123, Fall = 10921251156, Climb = 10921247141, Swim = 10921253142 }, { Name = "Ninja", Idle = 10921155160, Walk = 10921162768, Run = 10921157929, Jump = 10921160088, Fall = 10921159222, Climb = 10921154678, Swim = 10921161002 }, { Name = "Mage", Idle = 10921144709, Walk = 10921152678, Run = 10921148209, Jump = 10921149743, Fall = 10921148939, Climb = 10921143404, Swim = 10921150788 }, { Name = "Knight", Idle = 10921117521, Walk = 10921127095, Run = 10921121197, Jump = 10921123517, Fall = 10921122579, Climb = 10921116196, Swim = 10921125160 }, { Name = "Pirate", Idle = 750781874, Walk = 750785693, Run = 750783738, Jump = 750782230, Fall = 750780242, Climb = 750779899, Swim = 750784579 }, { Name = "Cartoony", Idle = 10921071918, Walk = 10921082452, Run = 10921076136, Jump = 10921078135, Fall = 10921077030, Climb = 10921070953, Swim = 10921079380 }, { Name = "Bubbly", Idle = 10921054344, Walk = 10980888364, Run = 10921057244, Jump = 10921062673, Fall = 10921061530, Climb = 10921053544, Swim = 10921063569 }, { Name = "Werewolf", Idle = 10921330408, Walk = 10921342074, Run = 10921336997, Jump = 1083218792, Fall = 10921337907, Climb = 10921329322, Swim = 10921340419 }, { Name = "Vampire", Idle = 10921315373, Walk = 10921326949, Run = 10921320299, Jump = 10921322186, Fall = 10921321317, Climb = 10921314188, Swim = 10921324408 }, { Name = "Astronaut", Idle = 10921034824, Walk = 10921046031, Run = 10921039308, Jump = 10921042494, Fall = 10921040576, Climb = 10921032124, Swim = 10921044000 }, { Name = "Elder", Idle = 10921101664, Walk = 10921111375, Run = 10921104374, Jump = 10921107367, Fall = 10921105765, Climb = 10921100400, Swim = 10921108971 }, { Name = "Rthro", Idle = 10921258489, Walk = 10921269718, Run = 10921261968, Jump = 10921263860, Fall = 10921262864, Climb = 10921257536, Swim = 10921264784 }, } -- Which folder inside the Animate script each clip belongs in. local PackSlots = { { Folder = "idle", Key = "Idle" }, { Folder = "walk", Key = "Walk" }, { Folder = "run", Key = "Run" }, { Folder = "jump", Key = "Jump" }, { Folder = "fall", Key = "Fall" }, { Folder = "climb", Key = "Climb" }, { Folder = "swim", Key = "Swim" }, { Folder = "swimidle", Key = "Swim" }, } local AnimState = { Current = nil, Speed = 1 } local OriginalAnimations = {} local function animationKey(instance) if instance.Parent then return instance.Parent.Name .. "/" .. instance.Name end return instance.Name end -- Remember the ids the character joined with, so reset can put them back. local function snapshotAnimations() OriginalAnimations = {} local char = getCharacter() local animate = char and char:FindFirstChild("Animate") if not animate then return 0 end local count = 0 for _, child in ipairs(animate:GetDescendants()) do if child:IsA("Animation") then OriginalAnimations[animationKey(child)] = child.AnimationId count += 1 end end return count end local function restoreAnimationIds() local char = getCharacter() local animate = char and char:FindFirstChild("Animate") if not animate then return 0 end local restored = 0 for _, child in ipairs(animate:GetDescendants()) do if child:IsA("Animation") then local original = OriginalAnimations[animationKey(child)] if original and child.AnimationId ~= original then pcall(function() child.AnimationId = original end) restored += 1 end end end return restored end local function animateScript() local char = getCharacter() return char and char:FindFirstChild("Animate") end -- The Animate script only rebuilds its tracks when it starts, so the pack has -- to be swapped in and then the state machine restarted. local function restartAnimations() local animate = animateScript() if not animate then return false end pcall(function() animate.Disabled = true end) task.wait(0.05) pcall(function() animate.Disabled = false end) return true end local function applyAnimationIds(entry) local animate = animateScript() if not animate then return 0 end if next(OriginalAnimations) == nil then snapshotAnimations() end local applied = 0 for _, slot in ipairs(PackSlots) do local id = entry[slot.Key] local holder = id and animate:FindFirstChild(slot.Folder) if holder then for _, child in ipairs(holder:GetChildren()) do if child:IsA("Animation") then pcall(function() child.AnimationId = "rbxassetid://" .. tostring(id) end) applied += 1 end end end end return applied end local function setAnimationPack(entry) if not animateScript() then notify("Animation", "Character is not ready yet.", 3, "alert-triangle") return false end if next(OriginalAnimations) == nil then snapshotAnimations() end if applyAnimationIds(entry) <= 0 then notify("Animation", "Could not apply " .. entry.Name .. ".", 3, "alert-triangle") return false end AnimState.Current = entry restartAnimations() notify("Animation", entry.Name .. " animation pack applied.", 3, "play") return true end local function resetAnimations(quiet) AnimState.Current = nil local restored = restoreAnimationIds() restartAnimations() if not quiet then notify("Animation", "Reset to your original animations.", 3, "rotate-ccw") end return restored end -- A respawn rebuilds the Animate script, so the chosen pack is applied again. connect(LocalPlayer.CharacterAdded, function() task.wait(1) if AnimState.Current then applyAnimationIds(AnimState.Current) restartAnimations() end end) local function setAnimationSpeed(value) AnimState.Speed = value local humanoid = getHumanoid() if not humanoid then return end local ok, tracks = pcall(function() return humanoid:GetPlayingAnimationTracks() end) if not ok or not tracks then return end for _, track in ipairs(tracks) do pcall(function() track:AdjustSpeed(value) end) end end -------------------------------------------------------------------- -- Movement helpers -------------------------------------------------------------------- local function tweenTo(position) local char = getCharacter() local root = getRoot() if not char or not root then notify("Teleport", "Character is not loaded.", 3, "alert-triangle") return end local startCFrame = root.CFrame local goal = CFrame.new(position) * (startCFrame - startCFrame.Position) local distance = (startCFrame.Position - position).Magnitude local duration = math.clamp(distance / math.max(Settings.TweenSpeed, 1), 0.08, 4) task.spawn(function() local elapsed = 0 while elapsed < duration do local dt = RunService.RenderStepped:Wait() elapsed += dt local alpha = math.clamp(elapsed / duration, 0, 1) local currentChar = getCharacter() if not currentChar or not getRoot() then return end currentChar:PivotTo(startCFrame:Lerp(goal, alpha)) end end) end local function teleportToPlayer(player) local target = player.Character local targetRoot = target and (target:FindFirstChild("HumanoidRootPart") or target:FindFirstChild("Torso")) if not targetRoot then notify("Teleport", "That player has no character.", 3, "alert-triangle") return end tweenTo(targetRoot.Position + Vector3.new(0, 2, 0)) end local function getSpawnPosition() local spawn = Workspace:FindFirstChildOfClass("SpawnLocation") if spawn then return spawn.Position + Vector3.new(0, 4, 0) end return Vector3.new(0, 10, 0) end local function setClickTeleport(enabled) setFeature("clickTeleport", enabled, function(add) add(UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed or isTextBoxFocused() then return end if input.UserInputType ~= Enum.UserInputType.MouseButton1 then return end local hit = Mouse.Hit if hit then tweenTo(hit.Position + Vector3.new(0, 3, 0)) end end)) end) end local function setSprint(enabled) setFeature("sprint", enabled, function(add) add(UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.LeftShift then local humanoid = getHumanoid() if humanoid then humanoid.WalkSpeed = Settings.SprintSpeed end end end)) add(UserInputService.InputEnded:Connect(function(input) if input.KeyCode == Enum.KeyCode.LeftShift then local humanoid = getHumanoid() if humanoid then humanoid.WalkSpeed = Settings.WalkSpeed end end end)) end) end local function setAntiVoid(enabled) setFeature("antiVoid", enabled, function(add) add(RunService.Heartbeat:Connect(function() local root = getRoot() if root and root.Position.Y < -100 then tweenTo(getSpawnPosition()) end end)) end) end local function setAntiAfk(enabled) setFeature("antiAfk", enabled, function(add) add(LocalPlayer.Idled:Connect(function() local virtualUser = game:GetService("VirtualUser") virtualUser:CaptureController() virtualUser:ClickButton2(Vector2.new(0, 0)) end)) end) end -------------------------------------------------------------------- -- Freecam -------------------------------------------------------------------- local Freecam = { conn = nil, rotateConn = nil, savedType = nil, savedSubject = nil } local function stopFreecam() if Freecam.conn then Freecam.conn:Disconnect() Freecam.conn = nil end if Freecam.rotateConn then Freecam.rotateConn:Disconnect() Freecam.rotateConn = nil end local camera = Workspace.CurrentCamera if camera then camera.CameraType = Freecam.savedType or Enum.CameraType.Custom if Freecam.savedSubject then camera.CameraSubject = Freecam.savedSubject else local humanoid = getHumanoid() if humanoid then camera.CameraSubject = humanoid end end end end local function startFreecam() stopFreecam() local camera = Workspace.CurrentCamera if not camera then return end Freecam.savedType = camera.CameraType Freecam.savedSubject = camera.CameraSubject local rotation = camera.CFrame camera.CameraType = Enum.CameraType.Scriptable Freecam.rotateConn = UserInputService.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement and not isTextBoxFocused() then rotation = rotation * CFrame.Angles(0, -input.Delta.X * 0.0035, 0) * CFrame.Angles(-input.Delta.Y * 0.0035, 0, 0) end end) Freecam.conn = RunService.RenderStepped:Connect(function(dt) local direction = Vector3.new(0, 0, 0) if UserInputService:IsKeyDown(Enum.KeyCode.W) then direction += rotation.LookVector end if UserInputService:IsKeyDown(Enum.KeyCode.S) then direction -= rotation.LookVector end if UserInputService:IsKeyDown(Enum.KeyCode.D) then direction += rotation.RightVector end if UserInputService:IsKeyDown(Enum.KeyCode.A) then direction -= rotation.RightVector end if UserInputService:IsKeyDown(Enum.KeyCode.Space) then direction += Vector3.new(0, 1, 0) end if UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) then direction -= Vector3.new(0, 1, 0) end local boost = UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) and 3 or 1 rotation = rotation + direction * Settings.FreecamSpeed * boost * dt camera.CFrame = rotation end) end onUnload(stopFreecam) -------------------------------------------------------------------- -- Visuals -------------------------------------------------------------------- local function setFullbright(enabled) if enabled then if not LightingBackup then LightingBackup = { Brightness = Lighting.Brightness, Ambient = Lighting.Ambient, OutdoorAmbient = Lighting.OutdoorAmbient, GlobalShadows = Lighting.GlobalShadows, EnvironmentDiffuseScale = Lighting.EnvironmentDiffuseScale, EnvironmentSpecularScale = Lighting.EnvironmentSpecularScale, } end Lighting.Brightness = 3 Lighting.Ambient = Color3.fromRGB(180, 180, 180) Lighting.OutdoorAmbient = Color3.fromRGB(180, 180, 180) Lighting.GlobalShadows = false Lighting.EnvironmentDiffuseScale = 1 Lighting.EnvironmentSpecularScale = 1 elseif LightingBackup then for property, value in pairs(LightingBackup) do pcall(function() Lighting[property] = value end) end LightingBackup = nil end end local function setNoFog(enabled) if enabled then Lighting.FogEnd = 100000 Lighting.FogStart = 0 else Lighting.FogEnd = 1000 Lighting.FogStart = 0 end end local function setSkyOff(enabled) if enabled then local sky = Lighting:FindFirstChildOfClass("Sky") if sky then SkyBackup = sky sky.Parent = nil end elseif SkyBackup then SkyBackup.Parent = Lighting SkyBackup = nil end end local function setXray(enabled) if enabled then table.clear(XrayBackup) for _, descendant in ipairs(Workspace:GetDescendants()) do if descendant:IsA("BasePart") and descendant.Parent ~= getCharacter() then XrayBackup[descendant] = descendant.LocalTransparencyModifier descendant.LocalTransparencyModifier = 0.55 end end else for part, original in pairs(XrayBackup) do pcall(function() part.LocalTransparencyModifier = original end) end table.clear(XrayBackup) end end local function setFov(value) local camera = Workspace.CurrentCamera if camera then camera.FieldOfView = value end end local function clearEsp() for _, highlight in pairs(EspHighlights) do pcall(function() highlight:Destroy() end) end for _, tag in pairs(EspNames) do pcall(function() tag:Destroy() end) end table.clear(EspHighlights) table.clear(EspNames) end local function applyEspColor() for _, highlight in pairs(EspHighlights) do pcall(function() highlight.FillColor = Settings.EspColor highlight.OutlineColor = Settings.EspColor end) end for _, tag in pairs(EspNames) do for _, child in ipairs(tag:GetDescendants()) do if child:IsA("TextLabel") then child.TextColor3 = Settings.EspColor end end end end local function addEspFor(player) local char = player.Character if not char or char == getCharacter() then return end if not EspHighlights[char] then local ok, highlight = pcall(function() local created = Instance.new("Highlight") created.Name = "WindHubESP" created.Adornee = char created.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop created.FillTransparency = 0.65 created.OutlineTransparency = 0 created.FillColor = Settings.EspColor created.OutlineColor = Settings.EspColor created.Parent = char return created end) if ok and highlight then EspHighlights[char] = highlight end end if not EspNames[char] then local head = char:FindFirstChild("Head") or char:FindFirstChild("HumanoidRootPart") if head then local ok, tag = pcall(function() local billboard = Instance.new("BillboardGui") billboard.Name = "WindHubESPName" billboard.Adornee = head billboard.Size = UDim2.fromOffset(240, 34) billboard.StudsOffset = Vector3.new(0, 1.7, 0) billboard.AlwaysOnTop = true billboard.LightInfluence = 0 billboard.MaxDistance = 1000 billboard.Parent = head local label = Instance.new("TextLabel") label.BackgroundTransparency = 1 label.Size = UDim2.fromScale(1, 1) label.Font = Enum.Font.GothamBold label.TextScaled = true label.TextStrokeTransparency = 0.3 label.TextColor3 = Settings.EspColor label.Text = player.DisplayName ~= player.Name and (player.DisplayName .. " (@" .. player.Name .. ")") or player.Name label.Parent = billboard return billboard end) if ok and tag then EspNames[char] = tag end end end end local function setEsp(enabled) State.Esp = enabled clearEsp() stopFeature("esp") if not enabled then applyEspColor() return end for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer then addEspFor(player) end end startFeature("esp", function(add) add(RunService.Heartbeat:Connect(function() for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer then addEspFor(player) end end end)) end) end local function setHideOthers(enabled) setFeature("hideOthers", enabled, function(add) add(RunService.RenderStepped:Connect(function() for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer and player.Character then for _, part in ipairs(player.Character:GetDescendants()) do if part:IsA("BasePart") then part.LocalTransparencyModifier = 1 end end end end end)) end) if not enabled then for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer and player.Character then for _, part in ipairs(player.Character:GetDescendants()) do if part:IsA("BasePart") then part.LocalTransparencyModifier = 0 end end end end end end -------------------------------------------------------------------- -- Music -------------------------------------------------------------------- local function stopMusic() if Music.sound then Music.sound:Destroy() Music.sound = nil end end local function playMusic(id, volume) stopMusic() local sound = Instance.new("Sound") sound.Name = "WindHubMusic" sound.SoundId = "rbxassetid://" .. tostring(id) sound.Volume = volume or 0.5 sound.Looped = true sound.Parent = SoundService sound:Play() Music.sound = sound end onUnload(stopMusic) -------------------------------------------------------------------- -- Load WindUI -------------------------------------------------------------------- local function loadWindUI() local sources = { "https://github.com/Footagesus/WindUI/releases/latest/download/main.lua", "https://raw.githubusercontent.com/Footagesus/WindUI/main/dist/main.lua", } local lastError for _, url in ipairs(sources) do local ok, result = pcall(function() local source = game:HttpGet(url, true) local chunk = loadstring(source) if not chunk then error("loadstring returned nil") end return chunk() end) if ok and type(result) == "table" then return result end lastError = result end error("WindUI failed to load: " .. tostring(lastError)) end local loaded, result = pcall(loadWindUI) if not loaded then WindUI = nil warn("[WindHub] " .. tostring(result)) return end WindUI = result pcall(function() WindUI:SetNotificationLower(true) end) -------------------------------------------------------------------- -- Build the window -------------------------------------------------------------------- local windowOk, Window = pcall(function() return WindUI:CreateWindow({ Title = "WindHub", Icon = "sparkles", Author = "by Buffy", Folder = "WindHub", Size = UDim2.fromOffset(650, 480), MinSize = Vector2.new(580, 380), MaxSize = Vector2.new(920, 640), ToggleKey = Enum.KeyCode.RightShift, Transparent = true, Theme = "Dark", Resizable = true, SideBarWidth = 195, ScrollBarEnabled = true, User = { Enabled = true, Anonymous = true, Callback = function() notify("WindHub", "Loaded on " .. LocalPlayer.Name, 4, "user") end, }, }) end) if not windowOk or not Window then warn("[WindHub] CreateWindow failed: " .. tostring(Window)) return end pcall(function() Window:Tag({ Title = "v1.0", Icon = "sparkles", Color = Color3.fromHex("#30ff6a"), Radius = 6 }) end) local function add(container, method, config) if not container then return nil end local fn = container[method] if type(fn) ~= "function" then return nil end local ok, element = pcall(fn, container, config) if not ok then warn(("[WindHub] %s failed: %s"):format(method, tostring(element))) return nil end return element end local function section(tab, title) return add(tab, "Section", { Title = title, Opened = true }) or tab end return (function() ---------------------------------------------------------------- -- Home ---------------------------------------------------------------- local homeTab = add(Window, "Tab", { Title = "Home", Icon = "home" }) local homeSection if homeTab then homeSection = section(homeTab, "Welcome") add(homeSection, "Paragraph", { Title = "Welcome, " .. LocalPlayer.Name, Desc = string.format( "%s · %d players online · %s", safePlaceName(), #Players:GetPlayers(), game.JobId ~= "" and ("job " .. string.sub(game.JobId, 1, 8)) or "studio" ), Image = "", Buttons = { { Icon = "copy", Title = "Copy JobId", Callback = function() if setclipboard then setclipboard(game.JobId) end notify("Copied", "JobId copied to clipboard.", 3, "clipboard") end, }, }, }) local quick = section(homeTab, "Quick actions") add(quick, "Button", { Title = "Rejoin server", Desc = "Teleport back into this same server", Icon = "refresh-cw", Callback = function() pcall(function() TeleportService:TeleportToPlaceInstance(game.PlaceId, game.JobId, LocalPlayer) end) end, }) add(quick, "Button", { Title = "Server info", Desc = "Place, creator and version", Icon = "info", Callback = function() notify( "Server info", string.format("PlaceId %d · Version %d · %d players", game.PlaceId, game.PlaceVersion, #Players:GetPlayers()), 6, "info" ) end, }) add(quick, "Button", { Title = "Reset character", Desc = "Respawn your character", Icon = "rotate-ccw", Callback = resetCharacter, }) local featureSection = section(homeTab, "Popular features") add(featureSection, "Toggle", { Title = "Fly", Desc = "WASD · Space up · LeftCtrl down", Value = false, Callback = function(enabled) State.Fly = enabled if enabled then if not startFly() then State.Fly = false end else stopFly() end end, }) add(featureSection, "Toggle", { Title = "Noclip", Desc = "Walk through walls", Value = false, Callback = setNoCollide, }) add(featureSection, "Toggle", { Title = "Player ESP", Desc = "Highlight other players", Value = false, Callback = setEsp, }) add(featureSection, "Toggle", { Title = "Fullbright", Desc = "Bright, shadowless lighting", Value = false, Callback = setFullbright, }) end ---------------------------------------------------------------- -- Character ---------------------------------------------------------------- local charTab = add(Window, "Tab", { Title = "Character", Icon = "user" }) if charTab then local movement = section(charTab, "Movement stats") add(movement, "Slider", { Title = "Walk speed", Step = 1, Value = { Min = 16, Max = 300, Default = 16 }, Callback = setWalkSpeed, }) add(movement, "Slider", { Title = "Jump power", Step = 1, Value = { Min = 50, Max = 500, Default = 50 }, Callback = setJumpPower, }) add(movement, "Slider", { Title = "Hip height (R15)", Step = 0.1, Value = { Min = 0, Max = 10, Default = 2 }, Callback = setHipHeight, }) local toggles = section(charTab, "Character toggles") add(toggles, "Toggle", { Title = "Infinite jump", Desc = "Jump again in mid-air", Value = false, Callback = setInfiniteJump, }) add(toggles, "Toggle", { Title = "Health regen", Desc = "Keeps your health topped up", Value = false, Callback = setHealthRegen, }) add(toggles, "Toggle", { Title = "God mode (local)", Desc = "Raises max health locally", Value = false, Callback = setGodMode, }) add(toggles, "Toggle", { Title = "Ghost", Desc = "Almost invisible character", Value = false, Callback = setGhost, }) add(toggles, "Toggle", { Title = "Anchor character", Desc = "Freeze in place", Value = false, Callback = setAnchor, }) add(toggles, "Toggle", { Title = "Spin", Desc = "Constant rotation", Value = false, Callback = setSpin, }) add(toggles, "Slider", { Title = "Spin speed", Step = 1, Value = { Min = 1, Max = 30, Default = 8 }, Callback = function(value) Settings.SpinSpeed = value end, }) local actions = section(charTab, "Actions") add(actions, "Button", { Title = "Full heal", Icon = "heart", Callback = function() local humanoid = getHumanoid() if humanoid then humanoid.Health = humanoid.MaxHealth end end, }) add(actions, "Button", { Title = "Respawn", Icon = "refresh-ccw", Callback = resetCharacter, }) add(actions, "Button", { Title = "Info", Icon = "info", Callback = function() local humanoid = getHumanoid() local rig = humanoid and humanoid.RigType.Name or "unknown" notify("Character", "Rig: " .. rig .. " · Health: " .. (humanoid and fmtNumber(humanoid.Health) or "?"), 5, "user") end, }) end ---------------------------------------------------------------- -- Movement ---------------------------------------------------------------- local moveTab = add(Window, "Tab", { Title = "Movement", Icon = "move-3d" }) if moveTab then local flight = section(moveTab, "Flight") add(flight, "Toggle", { Title = "Fly", Desc = "Free flight with camera steering", Value = false, Callback = function(enabled) State.Fly = enabled if enabled then if not startFly() then State.Fly = false end else stopFly() end end, }) add(flight, "Slider", { Title = "Fly speed", Step = 1, Value = { Min = 10, Max = 300, Default = 70 }, Callback = function(value) Settings.FlySpeed = value end, }) local ground = section(moveTab, "Ground movement") add(ground, "Toggle", { Title = "Sprint (hold LeftShift)", Desc = string.format("Raises walk speed to %d", Settings.SprintSpeed), Value = false, Callback = setSprint, }) add(ground, "Slider", { Title = "Sprint speed", Step = 1, Value = { Min = 20, Max = 200, Default = 60 }, Callback = function(value) Settings.SprintSpeed = value end, }) add(ground, "Slider", { Title = "Gravity", Step = 1, Value = { Min = 0, Max = 300, Default = 196 }, Callback = function(value) Workspace.Gravity = value end, }) add(ground, "Toggle", { Title = "Click teleport", Desc = "Left click to tween to the cursor", Value = false, Callback = setClickTeleport, }) add(ground, "Slider", { Title = "Teleport speed", Step = 10, Value = { Min = 20, Max = 500, Default = 90 }, Callback = function(value) Settings.TweenSpeed = value end, }) local safety = section(moveTab, "Safety") add(safety, "Toggle", { Title = "Anti void", Desc = "Teleport back when you fall", Value = false, Callback = setAntiVoid, }) add(safety, "Toggle", { Title = "Anti AFK", Desc = "Keeps the session active", Value = false, Callback = setAntiAfk, }) add(safety, "Button", { Title = "Teleport up 25 studs", Icon = "arrow-up", Callback = function() local root = getRoot() if root then tweenTo(root.Position + Vector3.new(0, 25, 0)) end end, }) end ---------------------------------------------------------------- -- Visuals ---------------------------------------------------------------- local visTab = add(Window, "Tab", { Title = "Visuals", Icon = "eye" }) if visTab then local lightingSection = section(visTab, "Lighting") add(lightingSection, "Toggle", { Title = "Fullbright", Desc = "Bright ambient light, no shadows", Value = false, Callback = setFullbright, }) add(lightingSection, "Toggle", { Title = "Remove fog", Value = false, Callback = setNoFog, }) add(lightingSection, "Toggle", { Title = "Remove skybox", Value = false, Callback = setSkyOff, }) add(lightingSection, "Slider", { Title = "Time of day", Step = 0.5, Value = { Min = 0, Max = 24, Default = 14 }, Callback = function(value) State.TimeOfDay = value Lighting.ClockTime = value end, }) local cameraSection = section(visTab, "Camera") add(cameraSection, "Slider", { Title = "Field of view", Step = 1, Value = { Min = 40, Max = 120, Default = 70 }, Callback = setFov, }) add(cameraSection, "Slider", { Title = "Max zoom distance", Step = 5, Value = { Min = 10, Max = 400, Default = 128 }, Callback = function(value) LocalPlayer.CameraMaxZoomDistance = value end, }) add(cameraSection, "Toggle", { Title = "Freecam", Desc = "Detached camera · WASD, Space/Ctrl, Shift boost", Value = false, Callback = function(enabled) State.Freecam = enabled if enabled then startFreecam() else stopFreecam() end end, }) add(cameraSection, "Slider", { Title = "Freecam speed", Step = 5, Value = { Min = 10, Max = 300, Default = 60 }, Callback = function(value) Settings.FreecamSpeed = value end, }) local espSection = section(visTab, "Players & world") add(espSection, "Toggle", { Title = "Player ESP", Desc = "Highlight all other players", Value = false, Callback = setEsp, }) add(espSection, "Colorpicker", { Title = "ESP color", Default = Settings.EspColor, Callback = function(color) Settings.EspColor = color applyEspColor() end, }) add(espSection, "Toggle", { Title = "X-ray world", Desc = "Semi-transparent map parts", Value = false, Callback = setXray, }) add(espSection, "Toggle", { Title = "Hide other players", Value = false, Callback = setHideOthers, }) end ---------------------------------------------------------------- -- Players ---------------------------------------------------------------- local playerTab = add(Window, "Tab", { Title = "Players", Icon = "users" }) if playerTab then local selectedPlayer = nil local function otherPlayers() local names = {} for _, player in ipairs(Players:GetPlayers()) do if player ~= LocalPlayer then table.insert(names, player.Name) end end table.sort(names) if #names == 0 then table.insert(names, "(nobody else here)") end return names end -- The dropdown list can be stale (players join after the hub loads), so the -- target is resolved live and falls back to the first other player. local function currentTarget() local player = selectedPlayer and Players:FindFirstChild(selectedPlayer) if not player or player == LocalPlayer then for _, other in ipairs(Players:GetPlayers()) do if other ~= LocalPlayer then player = other selectedPlayer = other.Name break end end end return player end local function selectedCharacter() local player = currentTarget() if not player then notify("Players", "Nobody else is in the server.", 3, "alert-triangle") return nil, nil end local char = player.Character local humanoid = char and char:FindFirstChildOfClass("Humanoid") if not char or not humanoid or humanoid.Health <= 0 then notify("Players", player.Name .. " has no character right now.", 3, "alert-triangle") return nil, nil end return player, char end local playerSection = section(playerTab, "Players in server") local startingPlayers = otherPlayers() local function realName(name) if name == "(nobody else here)" then return nil end return name end selectedPlayer = realName(startingPlayers[1]) local playerDropdown = add(playerSection, "Dropdown", { Title = "Player", Values = startingPlayers, Value = startingPlayers[1], SearchBarEnabled = true, Callback = function(value) selectedPlayer = value end, }) local function refreshPlayerList() local names = otherPlayers() if not selectedPlayer or not table.find(names, selectedPlayer) then selectedPlayer = realName(names[1]) end if playerDropdown then pcall(function() playerDropdown:Refresh(names) playerDropdown:Select(selectedPlayer or names[1]) end) end end connect(Players.PlayerAdded, function() task.wait(1) refreshPlayerList() end) connect(Players.PlayerRemoving, function() task.wait() refreshPlayerList() end) add(playerSection, "Button", { Title = "Teleport to player", Icon = "map-pin", Callback = function() local player, char = selectedCharacter() local root = char and (char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Torso")) if root then tweenTo(root.Position + Vector3.new(0, 3, 0)) notify("Players", "Teleporting to " .. player.Name, 2.5, "map-pin") end end, }) add(playerSection, "Toggle", { Title = "Spectate selected", Desc = "Attach your camera to the player", Value = false, Callback = function(enabled) setFeature("spectate", enabled, function(add) add(RunService.Heartbeat:Connect(function() local player = currentTarget() local humanoid = player and player.Character and player.Character:FindFirstChildOfClass("Humanoid") local camera = Workspace.CurrentCamera if humanoid and camera then camera.CameraSubject = humanoid end end)) end) if not enabled then local humanoid = getHumanoid() if humanoid and Workspace.CurrentCamera then Workspace.CurrentCamera.CameraSubject = humanoid end end end, }) add(playerSection, "Toggle", { Title = "Follow selected", Desc = "Teleport behind the player", Value = false, Callback = function(enabled) setFeature("follow", enabled, function() task.spawn(function() while Active["follow"] do local player = currentTarget() local root = player and player.Character and player.Character:FindFirstChild("HumanoidRootPart") if root then tweenTo(root.Position + Vector3.new(0, 3, 0)) end task.wait(1) end end) end) end, }) add(playerSection, "Button", { Title = "Copy selected username", Icon = "clipboard", Callback = function() local player = currentTarget() if not player then notify("Players", "Nobody else is in the server.", 3, "alert-triangle") return end if setclipboard then setclipboard(player.Name) end notify("Copied", player.Name, 3, "clipboard") end, }) local waypointSection = section(playerTab, "Waypoints") local waypointInput waypointInput = add(waypointSection, "Input", { Title = "Waypoint name", Placeholder = "e.g. base", Value = "", Callback = function() end, }) add(waypointSection, "Button", { Title = "Save current position", Icon = "save", Callback = function() local root = getRoot() local name = waypointInput and waypointInput.Value if type(name) ~= "string" or name == "" then name = "waypoint" .. tostring(#Waypoints + 1) end if root then Waypoints[name] = root.CFrame notify("Waypoints", "Saved " .. name, 3, "save") end end, }) add(waypointSection, "Button", { Title = "Teleport to saved position", Icon = "navigation", Callback = function() local name = waypointInput and waypointInput.Value local saved = type(name) == "string" and Waypoints[name] or nil if saved then tweenTo(saved.Position) else notify("Waypoints", "No saved waypoint with that name.", 3, "alert-triangle") end end, }) end ---------------------------------------------------------------- -- Teleport ---------------------------------------------------------------- local tpTab = add(Window, "Tab", { Title = "Teleport", Icon = "map-pin" }) if tpTab then local tpSection = section(tpTab, "Positions") add(tpSection, "Button", { Title = "Go to spawn", Icon = "home", Callback = function() tweenTo(getSpawnPosition()) end, }) add(tpSection, "Button", { Title = "Go to baseplate center", Icon = "crosshair", Callback = function() tweenTo(Vector3.new(0, 10, 0)) end, }) add(tpSection, "Button", { Title = "Teleport up 100 studs", Icon = "arrow-up", Callback = function() local root = getRoot() if root then tweenTo(root.Position + Vector3.new(0, 100, 0)) end end, }) local coordSection = section(tpTab, "Custom position") local coordInput coordInput = add(coordSection, "Input", { Title = "Coordinates", Desc = "Format: x, y, z", Placeholder = "0, 10, 0", Value = "", Callback = function() end, }) add(coordSection, "Button", { Title = "Teleport to coordinates", Icon = "navigation", Callback = function() local text = coordInput and coordInput.Value or "" local x, y, z = string.match(text, "^%s*(%-?[%d%.]+)%s*,%s*(%-?[%d%.]+)%s*,%s*(%-?[%d%.]+)%s*$") if x and y and z then tweenTo(Vector3.new(tonumber(x), tonumber(y), tonumber(z))) else notify("Teleport", "Use the format: x, y, z", 4, "alert-triangle") end end, }) local clickTp = section(tpTab, "Click teleport") add(clickTp, "Toggle", { Title = "Click teleport", Desc = "Left click to move to the cursor", Value = false, Callback = setClickTeleport, }) add(clickTp, "Slider", { Title = "Tween speed", Step = 10, Value = { Min = 20, Max = 500, Default = 90 }, Callback = function(value) Settings.TweenSpeed = value end, }) end ---------------------------------------------------------------- -- Fun ---------------------------------------------------------------- local funTab = add(Window, "Tab", { Title = "Fun", Icon = "sparkles" }) if funTab then local visuals = section(funTab, "Cosmetics") add(visuals, "Toggle", { Title = "Rainbow character", Desc = "Cycles body colors", Value = false, Callback = setRainbow, }) add(visuals, "Dropdown", { Title = "Foot particles", Values = { "None", "Fire", "Sparkles", "Smoke", "Hearts" }, Value = "None", Callback = function(value) if value == "None" then State.Particles = false stopFeature("particles") clearParticles() else setFootParticles(string.lower(value), true) end end, }) add(visuals, "Toggle", { Title = "Motion trail", Desc = "Ribbon behind your character", Value = false, Callback = setTrail, }) add(visuals, "Toggle", { Title = "Neon aura", Desc = "Point light around you", Value = false, Callback = setAura, }) add(visuals, "Colorpicker", { Title = "Aura color", Default = Settings.AuraColor, Callback = function(color) Settings.AuraColor = color local root = getRoot() local light = root and root:FindFirstChild("WindHubAura") if light then light.Color = color end end, }) add(visuals, "Button", { Title = "Explosion effect", Icon = "flame", Callback = explosionFx, }) local emotes = section(funTab, "Emotes") add(emotes, "Button", { Title = "Dance", Icon = "music", Callback = function() playEmote("dance") end, }) add(emotes, "Button", { Title = "Wave", Icon = "hand", Callback = function() playEmote("wave") end, }) add(emotes, "Button", { Title = "Point", Icon = "pointer", Callback = function() playEmote("point") end, }) add(emotes, "Button", { Title = "Laugh", Icon = "laugh", Callback = function() playEmote("laugh") end, }) local musicSection = section(funTab, "Music") local musicInput musicInput = add(musicSection, "Input", { Title = "Sound ID", Desc = "Roblox audio asset id", Placeholder = "1837879082", Value = "", Callback = function() end, }) add(musicSection, "Button", { Title = "Play", Icon = "play", Callback = function() local id = musicInput and musicInput.Value and string.match(musicInput.Value, "%d+") if id then playMusic(id, 0.5) notify("Music", "Playing asset " .. id, 3, "music") else notify("Music", "Enter a numeric sound id.", 3, "alert-triangle") end end, }) add(musicSection, "Button", { Title = "Stop", Icon = "square", Callback = stopMusic, }) add(musicSection, "Slider", { Title = "Volume", Step = 0.05, Value = { Min = 0, Max = 1, Default = 0.5 }, Callback = function(value) if Music.sound then Music.sound.Volume = value end end, }) end ---------------------------------------------------------------- -- Animation ---------------------------------------------------------------- local animTab = add(Window, "Tab", { Title = "Animation", Icon = "play" }) if animTab then local playerSection = section(animTab, "Animation pack") add(playerSection, "Paragraph", { Title = "Change your animation set", Desc = "Picking a pack swaps the idle, walk, run, jump, fall, climb and swim animations your character plays. Reset puts back the pack you joined with.", }) add(playerSection, "Button", { Title = "Reset to original animation", Desc = "Restores the animation pack your character joined with", Icon = "rotate-ccw", Callback = function() resetAnimations(false) end, }) add(playerSection, "Slider", { Title = "Animation speed", Step = 0.05, Value = { Min = 0.25, Max = 3, Default = 1 }, Callback = setAnimationSpeed, }) local packsSection = section(animTab, "Roblox packs") for _, entry in ipairs(AnimationPacks) do add(packsSection, "Button", { Title = entry.Name, Desc = "Swaps idle, walk, run, jump, fall, climb and swim", Icon = "play", Callback = function() setAnimationPack(entry) end, }) end end ---------------------------------------------------------------- -- World ---------------------------------------------------------------- local worldTab = add(Window, "Tab", { Title = "World", Icon = "globe" }) if worldTab then local serverSection = section(worldTab, "Server") add(serverSection, "Button", { Title = "Rejoin", Desc = "Back to this exact server", Icon = "refresh-cw", Callback = function() pcall(function() TeleportService:TeleportToPlaceInstance(game.PlaceId, game.JobId, LocalPlayer) end) end, }) add(serverSection, "Button", { Title = "Copy place id", Icon = "copy", Callback = function() if setclipboard then setclipboard(tostring(game.PlaceId)) end notify("Copied", tostring(game.PlaceId), 3, "clipboard") end, }) add(serverSection, "Button", { Title = "Copy job id", Icon = "copy", Callback = function() if setclipboard then setclipboard(game.JobId) end notify("Copied", "JobId copied.", 3, "clipboard") end, }) local worldSettings = section(worldTab, "World settings") add(worldSettings, "Slider", { Title = "Gravity", Step = 1, Value = { Min = 0, Max = 300, Default = 196 }, Callback = function(value) Workspace.Gravity = value end, }) add(worldSettings, "Slider", { Title = "Time of day", Step = 0.5, Value = { Min = 0, Max = 24, Default = 14 }, Callback = function(value) Lighting.ClockTime = value end, }) local danger = section(worldTab, "Danger zone") add(danger, "Button", { Title = "Clear map (client only)", Desc = "Destroys workspace parts locally", Icon = "trash-2", Callback = function() local ok = pcall(function() Window:Dialog({ Title = "Clear map?", Content = "This removes map objects for you only. Rejoin to get them back.", Buttons = { { Title = "Clear", Callback = function() local char = getCharacter() for _, child in ipairs(Workspace:GetChildren()) do if child ~= char and child:IsA("BasePart") then child:Destroy() end end notify("World", "Map parts cleared locally.", 4, "trash-2") end, }, { Title = "Cancel", Callback = function() end, }, }, }) end) if not ok then notify("World", "Dialog unavailable in this WindUI version.", 4, "alert-triangle") end end, }) end ---------------------------------------------------------------- -- Settings ---------------------------------------------------------------- local settingsTab = add(Window, "Tab", { Title = "Settings", Icon = "settings" }) if settingsTab then local uiSection = section(settingsTab, "Interface") add(uiSection, "Slider", { Title = "UI scale", Step = 0.05, Value = { Min = 0.6, Max = 1.6, Default = 1 }, Callback = function(value) pcall(function() Window:SetUIScale(value) end) end, }) add(uiSection, "Keybind", { Title = "Toggle key", Desc = "Key that opens this menu", Value = "RightShift", Callback = function(key) local keyName = typeof(key) == "EnumItem" and key.Name or tostring(key) local ok = pcall(function() Window:SetToggleKey(Enum.KeyCode[keyName]) end) if not ok then notify("Settings", "Invalid key: " .. keyName, 3, "alert-triangle") end end, }) add(uiSection, "Dropdown", { Title = "Theme", Values = { "Dark", "Light" }, Value = "Dark", Callback = function(value) local ok = pcall(function() WindUI:SetTheme(value) end) if not ok then notify("Settings", "Theme unavailable: " .. value, 3, "alert-triangle") end end, }) add(uiSection, "Button", { Title = "Test notification", Icon = "bell", Callback = function() notify("WindHub", "Notifications are working.", 4, "bell") end, }) local resetSection = section(settingsTab, "Reset") add(resetSection, "Button", { Title = "Restore defaults", Icon = "rotate-ccw", Callback = function() setWalkSpeed(16) setJumpPower(50) setHipHeight(2) Workspace.Gravity = 196 setFullbright(false) setNoFog(false) resetAnimations(true) Lighting.ClockTime = 14 notify("Settings", "Character and world defaults restored.", 4, "rotate-ccw") end, }) add(resetSection, "Button", { Title = "Unload WindHub", Desc = "Stops every feature and closes the menu", Color = Color3.fromRGB(200, 60, 60), Icon = "power", Callback = function() for name in pairs(Active) do stopFeature(name) end for _, restorer in ipairs(Restorers) do pcall(restorer) end clearEsp() clearParticles() setNoCollide(false) setGhost(false) setFullbright(false) setNoFog(false) setSkyOff(false) setXray(false) setHideOthers(false) resetAnimations(true) pcall(function() Window:Destroy() end) warn("[WindHub] unloaded.") end, }) add(settingsTab, "Paragraph", { Title = "WindHub", Desc = "Built with WindUI by Footagesus. All features are client-side.", }) end if homeTab then pcall(function() homeTab:Select() end) end notify("WindHub loaded", "Press RightShift to toggle the menu.", 6, "sparkles") return true end)()