local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local TweenService = game:GetService("TweenService") local player = Players.LocalPlayer local MESH_ID = "rbxassetid://6356575802" local TEXTURE_ID = "rbxassetid://3694027461" local PARTICLE_ID = "rbxassetid://7118413935" local ANIMATION_ID = "rbxassetid://127188262423456" local NORMAL_SPEED = 60 local MAX_SPEED = 65 local JUMP_HEIGHT = 65 local FORWARD_JUMP = 30 local HOVER_HEIGHT = 0.75 local BOARD_YAW_OFFSET = math.rad(90) local equipped = false local activeBoard local character local humanoid local root local animator local animationTrack local boardConnection local movementConnection local jumpConnection local animationConnection local savedWalkSpeed local savedJumpPower local savedUseJumpPower local savedAutoRotate local savedHipHeight local savedAnimateEnabled local savedMotor6DTransforms = {} local frozenTracks = {} local jumpLocked = false local smoothedBoardY = nil local gui = Instance.new("ScreenGui") gui.Name = "TIM3CRAFT_Hoverboard" gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") local button = Instance.new("ImageButton") button.Name = "Hoverboard" button.Size = UDim2.fromOffset(88, 88) button.Position = UDim2.new(0, 227, 0, 268) button.BackgroundColor3 = Color3.fromRGB(20, 16, 35) button.Image = "rbxassetid://15048277894" button.ScaleType = Enum.ScaleType.Fit button.AutoButtonColor = false button.Parent = gui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 16) corner.Parent = button local stroke = Instance.new("UIStroke") stroke.Color = Color3.fromRGB(180, 100, 255) stroke.Thickness = 2 stroke.Parent = button local function animateButton() TweenService:Create( button, TweenInfo.new(0.12, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {Size = UDim2.fromOffset(96, 96)} ):Play() task.delay(0.12, function() if button and button.Parent then TweenService:Create( button, TweenInfo.new(0.12, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {Size = UDim2.fromOffset(88, 88)} ):Play() end end) end local function addHoverboardParticles(board) for i, x in ipairs({-2, 2}) do local attachment = Instance.new("Attachment") attachment.Name = "HoverboardParticleAttachment" .. i attachment.Position = Vector3.new(x, 0, 0) attachment.Parent = board local emitter = Instance.new("ParticleEmitter") emitter.Name = "HoverboardTrail" emitter.Texture = PARTICLE_ID emitter.EmissionDirection = Enum.NormalId.Bottom emitter.Drag = 6 emitter.Lifetime = NumberRange.new(0.65, 0.65) emitter.LightInfluence = 1 emitter.LightEmission = 0.25 emitter.LockedToPart = true emitter.Orientation = Enum.ParticleOrientation.VelocityPerpendicular emitter.Rate = 4 emitter.Speed = NumberRange.new(4, 4) emitter.Size = NumberSequence.new({ NumberSequenceKeypoint.new(0, 0.6), NumberSequenceKeypoint.new(1, 1.5) }) emitter.Transparency = NumberSequence.new({ NumberSequenceKeypoint.new(0, 0.5125), NumberSequenceKeypoint.new(0.296211, 0.49375), NumberSequenceKeypoint.new(0.639495, 0.5875), NumberSequenceKeypoint.new(0.871412, 0.7375), NumberSequenceKeypoint.new(1, 1) }) emitter.Parent = attachment end end local function createHoverboard() if activeBoard then activeBoard:Destroy() activeBoard = nil end local board = Instance.new("Part") board.Name = "TIM3CRAFT_Hoverboard_Model" board.Size = Vector3.new(4, 0.5, 7) board.Transparency = 0 board.Color = Color3.fromRGB(170, 100, 255) board.Material = Enum.Material.SmoothPlastic board.Anchored = true board.CanCollide = false board.CanTouch = false board.CanQuery = false board.CastShadow = false local mesh = Instance.new("SpecialMesh") mesh.Name = "HoverboardMesh" mesh.MeshType = Enum.MeshType.FileMesh mesh.MeshId = MESH_ID mesh.TextureId = TEXTURE_ID mesh.Scale = Vector3.new(1, 1, 1) mesh.Parent = board board.Parent = workspace activeBoard = board smoothedBoardY = nil addHoverboardParticles(board) return board end local function freezeTrack(track) if track.IsPlaying then if not frozenTracks[track] then frozenTracks[track] = track.Speed end track:AdjustSpeed(0) end end local function restoreTracks() for track, oldSpeed in pairs(frozenTracks) do pcall(function() if track then track:AdjustSpeed(oldSpeed) end end) end table.clear(frozenTracks) end local function captureAndResetPose(char) table.clear(savedMotor6DTransforms) if not char then return end for _, desc in ipairs(char:GetDescendants()) do if desc:IsA("Motor6D") then savedMotor6DTransforms[desc] = desc.Transform desc.Transform = CFrame.identity end end end local function lockStandingStillPose(char) if not char then return end for _, desc in ipairs(char:GetDescendants()) do if desc:IsA("Motor6D") then desc.Transform = CFrame.identity end end end local function restorePose() for motor, oldTransform in pairs(savedMotor6DTransforms) do pcall(function() if motor and motor.Parent then motor.Transform = oldTransform end end) end table.clear(savedMotor6DTransforms) end local function stopHoverMovement() if boardConnection then boardConnection:Disconnect() boardConnection = nil end if movementConnection then movementConnection:Disconnect() movementConnection = nil end if jumpConnection then jumpConnection:Disconnect() jumpConnection = nil end if animationConnection then animationConnection:Disconnect() animationConnection = nil end if animationTrack then pcall(function() animationTrack:Stop(0.1) animationTrack:Destroy() end) animationTrack = nil end restoreTracks() restorePose() if humanoid then if savedWalkSpeed then humanoid.WalkSpeed = savedWalkSpeed end if savedJumpPower then humanoid.JumpPower = savedJumpPower end if savedUseJumpPower ~= nil then humanoid.UseJumpPower = savedUseJumpPower end if savedAutoRotate ~= nil then humanoid.AutoRotate = savedAutoRotate end if savedHipHeight then humanoid.HipHeight = savedHipHeight end end local animate = character and character:FindFirstChild("Animate") if animate and savedAnimateEnabled ~= nil then animate.Disabled = not savedAnimateEnabled end smoothedBoardY = nil jumpLocked = false end local function startHoverMovement() character = player.Character or player.CharacterAdded:Wait() humanoid = character:WaitForChild("Humanoid") root = character:WaitForChild("HumanoidRootPart") animator = humanoid:WaitForChild("Animator") savedWalkSpeed = humanoid.WalkSpeed savedJumpPower = humanoid.JumpPower savedUseJumpPower = humanoid.UseJumpPower savedAutoRotate = humanoid.AutoRotate savedHipHeight = humanoid.HipHeight local animate = character:FindFirstChild("Animate") if animate then savedAnimateEnabled = not animate.Disabled animate.Disabled = true end humanoid.WalkSpeed = NORMAL_SPEED humanoid.UseJumpPower = true humanoid.JumpPower = math.sqrt(2 * workspace.Gravity * JUMP_HEIGHT) humanoid.HipHeight = savedHipHeight + HOVER_HEIGHT humanoid.AutoRotate = false smoothedBoardY = nil if root then root.CFrame = root.CFrame * CFrame.Angles(0, BOARD_YAW_OFFSET, 0) end for _, track in ipairs(animator:GetPlayingAnimationTracks()) do track:Stop(0) freezeTrack(track) end animationConnection = animator.AnimationPlayed:Connect(function(track) track:Stop(0) freezeTrack(track) end) captureAndResetPose(character) local rayParams = RaycastParams.new() rayParams.FilterType = Enum.RaycastFilterType.Exclude rayParams.FilterDescendantsInstances = {character, activeBoard} boardConnection = RunService.RenderStepped:Connect(function(dt) if not equipped or not root or not root.Parent or not activeBoard then return end if humanoid and humanoid.MoveDirection.Magnitude > 0.1 then local moveYaw = math.atan2(-humanoid.MoveDirection.X, -humanoid.MoveDirection.Z) + BOARD_YAW_OFFSET local targetRootCFrame = CFrame.new(root.Position) * CFrame.Angles(0, moveYaw, 0) root.CFrame = root.CFrame:Lerp(targetRootCFrame, 1 - math.exp(-16 * math.min(dt, 0.1))) end lockStandingStillPose(character) rayParams.FilterDescendantsInstances = {character, activeBoard} local result = workspace:Raycast( root.Position, Vector3.new(0, -1000, 0), rayParams ) local targetY if result then targetY = result.Position.Y + HOVER_HEIGHT + 0.25 else targetY = root.Position.Y - 2.5 end local alpha = 1 - math.exp(-24 * math.min(dt, 0.1)) if smoothedBoardY == nil then smoothedBoardY = targetY else smoothedBoardY = smoothedBoardY + (targetY - smoothedBoardY) * alpha end local boardPosition = Vector3.new( root.Position.X, smoothedBoardY, root.Position.Z ) local _, yaw, _ = root.CFrame:ToEulerAnglesYXZ() activeBoard.CFrame = CFrame.new(boardPosition) * CFrame.Angles(0, yaw, 0) end) movementConnection = RunService.Heartbeat:Connect(function(dt) if not equipped or not humanoid or humanoid.Health <= 0 then return end local isMoving = humanoid.MoveDirection.Magnitude > 0.1 local targetSpeed = isMoving and MAX_SPEED or NORMAL_SPEED local alpha = 1 - math.exp(-10 * math.min(dt, 0.1)) humanoid.WalkSpeed = humanoid.WalkSpeed + (targetSpeed - humanoid.WalkSpeed) * alpha end) jumpConnection = UserInputService.JumpRequest:Connect(function() if not equipped or jumpLocked or not root or not humanoid then return end jumpLocked = true local direction = humanoid.MoveDirection if direction.Magnitude < 0.1 then direction = root.CFrame.LookVector end root.AssemblyLinearVelocity = Vector3.new( direction.X * FORWARD_JUMP, math.sqrt(2 * workspace.Gravity * JUMP_HEIGHT), direction.Z * FORWARD_JUMP ) task.delay(0.35, function() jumpLocked = false end) end) end local function unequipHoverboard() equipped = false stopHoverMovement() if activeBoard then activeBoard:Destroy() activeBoard = nil end stroke.Color = Color3.fromRGB(180, 100, 255) end local function equipHoverboard() if equipped then return end equipped = true createHoverboard() startHoverMovement() stroke.Color = Color3.fromRGB(100, 255, 180) end local function toggleHoverboard() animateButton() if equipped then unequipHoverboard() else equipHoverboard() end end local function emergencyStop() unequipHoverboard() end button.Activated:Connect(toggleHoverboard) UserInputService.InputBegan:Connect(function(input, processed) if processed then return end if input.KeyCode == Enum.KeyCode.Q then toggleHoverboard() elseif input.KeyCode == Enum.KeyCode.X then emergencyStop() end end) player.CharacterAdded:Connect(function(newCharacter) character = newCharacter if equipped then task.wait(0.5) if equipped then stopHoverMovement() createHoverboard() startHoverMovement() end end end)