--================================================== -- PROJECT MAN OF STEEL -- R15 SUPERMAN FLIGHT + LANDING ASSIST -- CLIENT-SIDE VERSION --================================================== local Players = game:GetService("Players") local UIS = game:GetService("UserInputService") local RunService = game:GetService("RunService") local TweenService = game:GetService("TweenService") local Player = Players.LocalPlayer local PlayerGui = Player:WaitForChild("PlayerGui") -- SETTINGS local BASE_SPEED = 100 local MAX_SPEED = 500 local BOOST_MULTIPLIER = 2 local BOOM_SPEED = 250 local ANIMATION_SMOOTHNESS = 14 local BANK_ANGLE = 45 -- LANDING ASSIST local LANDING_DISTANCE = 25 local SAFE_FALL_SPEED = -18 local LANDING_ASSIST_DURATION = 15 local Speed = BASE_SPEED local Flying = false local Boosting = false local BoomEnabled = true local Character local Humanoid local Root local Motors = {} local CurrentPose = {} local Attachment local Velocity local Orientation local LastBoom = 0 local LandingAssistUntil = 0 --================================================== -- CHARACTER SETUP --================================================== local function SetupCharacter(char) Character = char Humanoid = char:WaitForChild("Humanoid") Root = char:WaitForChild("HumanoidRootPart") Motors = {} CurrentPose = {} for _, object in ipairs(char:GetDescendants()) do if object:IsA("Motor6D") then Motors[object.Name] = object CurrentPose[object.Name] = CFrame.identity end end end if Player.Character then SetupCharacter(Player.Character) else SetupCharacter(Player.CharacterAdded:Wait()) end --================================================== -- GUI --================================================== local oldGUI = PlayerGui:FindFirstChild("ManOfSteelR15") if oldGUI then oldGUI:Destroy() end local GUI = Instance.new("ScreenGui") GUI.Name = "ManOfSteelR15" GUI.ResetOnSpawn = false GUI.IgnoreGuiInset = true GUI.Parent = PlayerGui local function Round(object, radius) local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, radius or 10) corner.Parent = object end local function MakeButton(parent, text, size, position) local button = Instance.new("TextButton") button.Size = size button.Position = position button.BackgroundColor3 = Color3.fromRGB(15, 65, 120) button.TextColor3 = Color3.new(1, 1, 1) button.Text = text button.Font = Enum.Font.GothamBold button.TextSize = 14 button.Parent = parent Round(button, 9) local stroke = Instance.new("UIStroke") stroke.Color = Color3.fromRGB(0, 170, 255) stroke.Thickness = 1.5 stroke.Parent = button return button end local Main = Instance.new("Frame") Main.Size = UDim2.fromOffset(250, 270) Main.Position = UDim2.new(0, 15, 0.25, 0) Main.BackgroundColor3 = Color3.fromRGB(8, 15, 30) Main.BorderSizePixel = 0 Main.Parent = GUI Round(Main, 12) local outline = Instance.new("UIStroke") outline.Color = Color3.fromRGB(0, 150, 255) outline.Thickness = 2 outline.Parent = Main local Header = Instance.new("TextLabel") Header.Size = UDim2.new(1, 0, 0, 40) Header.BackgroundTransparency = 1 Header.Text = "⚡ MAN OF STEEL R15" Header.TextColor3 = Color3.fromRGB(0, 190, 255) Header.Font = Enum.Font.GothamBold Header.TextSize = 16 Header.Parent = Main local Status = Instance.new("TextLabel") Status.Size = UDim2.new(1, -20, 0, 25) Status.Position = UDim2.new(0, 10, 0, 40) Status.BackgroundTransparency = 1 Status.Text = "STATUS: GROUNDED" Status.TextColor3 = Color3.fromRGB(0, 255, 120) Status.Font = Enum.Font.GothamBold Status.TextSize = 12 Status.Parent = Main local SpeedBox = Instance.new("TextBox") SpeedBox.Size = UDim2.new(1, -20, 0, 32) SpeedBox.Position = UDim2.new(0, 10, 0, 70) SpeedBox.BackgroundColor3 = Color3.fromRGB(25, 35, 55) SpeedBox.TextColor3 = Color3.new(1, 1, 1) SpeedBox.Text = tostring(BASE_SPEED) SpeedBox.ClearTextOnFocus = false SpeedBox.Font = Enum.Font.Gotham SpeedBox.TextSize = 14 SpeedBox.Parent = Main Round(SpeedBox, 8) SpeedBox.FocusLost:Connect(function() local value = tonumber(SpeedBox.Text) if value then Speed = math.clamp(value, 10, MAX_SPEED) end SpeedBox.Text = tostring(Speed) end) local FlightButton = MakeButton( Main, "ENABLE FLIGHT", UDim2.new(1, -20, 0, 36), UDim2.new(0, 10, 0, 112) ) local BoostButton = MakeButton( Main, "BOOST: OFF", UDim2.new(1, -20, 0, 36), UDim2.new(0, 10, 0, 154) ) local BoomButton = MakeButton( Main, "SONIC BOOM: ON", UDim2.new(1, -20, 0, 36), UDim2.new(0, 10, 0, 196) ) local CloseButton = MakeButton( Main, "CLOSE MENU", UDim2.new(1, -20, 0, 28), UDim2.new(0, 10, 0, 237) ) --================================================== -- DRAGGABLE GUI --================================================== local dragging = false local dragStart local startPosition Header.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true dragStart = input.Position startPosition = Main.Position end end) UIS.InputChanged:Connect(function(input) if dragging and ( input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseMovement ) then local delta = input.Position - dragStart Main.Position = UDim2.new( startPosition.X.Scale, startPosition.X.Offset + delta.X, startPosition.Y.Scale, startPosition.Y.Offset + delta.Y ) end end) UIS.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end end) --================================================== -- REOPEN BUTTON --================================================== local Reopen = MakeButton( GUI, "OPEN FLIGHT", UDim2.fromOffset(125, 42), UDim2.new(0, 15, 0.45, 0) ) Reopen.Visible = false CloseButton.Activated:Connect(function() Main.Visible = false Reopen.Visible = true end) Reopen.Activated:Connect(function() Main.Visible = true Reopen.Visible = false end) --================================================== -- R15 ANIMATION --================================================== local function AnimateMotor(name, target, alpha) local motor = Motors[name] if not motor then return end local current = CurrentPose[name] or CFrame.identity local updated = current:Lerp(target, alpha) CurrentPose[name] = updated motor.Transform = updated end local function SupermanPose(sideways, alpha) AnimateMotor("Waist", CFrame.Angles(math.rad(18), 0, math.rad(-sideways * 25)), alpha) AnimateMotor("Neck", CFrame.Angles(math.rad(-12), 0, math.rad(sideways * 8)), alpha) AnimateMotor("LeftShoulder", CFrame.Angles(math.rad(85), 0, math.rad(-8)), alpha) AnimateMotor("RightShoulder", CFrame.Angles(math.rad(85), 0, math.rad(8)), alpha) AnimateMotor("LeftElbow", CFrame.Angles(math.rad(-8), 0, 0), alpha) AnimateMotor("RightElbow", CFrame.Angles(math.rad(-8), 0, 0), alpha) AnimateMotor("LeftWrist", CFrame.Angles(math.rad(5), 0, 0), alpha) AnimateMotor("RightWrist", CFrame.Angles(math.rad(5), 0, 0), alpha) AnimateMotor("LeftHip", CFrame.Angles(math.rad(-75), 0, math.rad(-5)), alpha) AnimateMotor("RightHip", CFrame.Angles(math.rad(-75), 0, math.rad(5)), alpha) AnimateMotor("LeftKnee", CFrame.Angles(math.rad(15), 0, 0), alpha) AnimateMotor("RightKnee", CFrame.Angles(math.rad(15), 0, 0), alpha) AnimateMotor("LeftAnkle", CFrame.Angles(math.rad(-5), 0, 0), alpha) AnimateMotor("RightAnkle", CFrame.Angles(math.rad(-5), 0, 0), alpha) end local function HoverPose(alpha) AnimateMotor("Waist", CFrame.identity, alpha) AnimateMotor("Neck", CFrame.identity, alpha) AnimateMotor("LeftShoulder", CFrame.Angles(math.rad(-12), 0, math.rad(-8)), alpha) AnimateMotor("RightShoulder", CFrame.Angles(math.rad(-12), 0, math.rad(8)), alpha) local names = { "LeftElbow", "RightElbow", "LeftWrist", "RightWrist", "LeftHip", "RightHip", "LeftKnee", "RightKnee", "LeftAnkle", "RightAnkle" } for _, name in ipairs(names) do AnimateMotor(name, CFrame.identity, alpha) end end local function ResetPose() for name, motor in pairs(Motors) do motor.Transform = CFrame.identity CurrentPose[name] = CFrame.identity end end --================================================== -- SONIC BOOM --================================================== local function SonicBoom() if not Root then return end local ring = Instance.new("Part") ring.Name = "SonicBoomVisual" ring.Shape = Enum.PartType.Cylinder ring.Size = Vector3.new(0.2, 5, 5) ring.Material = Enum.Material.Neon ring.Color = Color3.fromRGB(80, 200, 255) ring.Transparency = 0.15 ring.Anchored = true ring.CanCollide = false ring.CFrame = Root.CFrame * CFrame.Angles(0, 0, math.rad(90)) ring.Parent = workspace local tween = TweenService:Create( ring, TweenInfo.new(0.55, Enum.EasingStyle.Quart), { Size = Vector3.new(0.2, 35, 35), Transparency = 1 } ) tween:Play() tween.Completed:Connect(function() ring:Destroy() end) end --================================================== -- LANDING ASSIST --================================================== local function SafeLandingAssist() if not Root or not Character then return end if os.clock() > LandingAssistUntil then return end local params = RaycastParams.new() params.FilterType = Enum.RaycastFilterType.Exclude params.FilterDescendantsInstances = {Character} local result = workspace:Raycast( Root.Position, Vector3.new(0, -LANDING_DISTANCE, 0), params ) if not result then return end local velocity = Root.AssemblyLinearVelocity if velocity.Y < SAFE_FALL_SPEED then Root.AssemblyLinearVelocity = Vector3.new( velocity.X, SAFE_FALL_SPEED, velocity.Z ) end if Humanoid and Humanoid.FloorMaterial ~= Enum.Material.Air then LandingAssistUntil = 0 end end --================================================== -- FLIGHT --================================================== local function StartFlying() if Flying or not Root or not Humanoid then return end Flying = true LandingAssistUntil = 0 Humanoid.AutoRotate = false Humanoid:ChangeState(Enum.HumanoidStateType.Physics) Attachment = Instance.new("Attachment") Attachment.Parent = Root Velocity = Instance.new("LinearVelocity") Velocity.Attachment0 = Attachment Velocity.RelativeTo = Enum.ActuatorRelativeTo.World Velocity.MaxForce = math.huge Velocity.VectorVelocity = Vector3.zero Velocity.Parent = Root Orientation = Instance.new("AlignOrientation") Orientation.Attachment0 = Attachment Orientation.Mode = Enum.OrientationAlignmentMode.OneAttachment Orientation.Responsiveness = 25 Orientation.MaxTorque = math.huge Orientation.Parent = Root Status.Text = "STATUS: FLYING" Status.TextColor3 = Color3.fromRGB(0, 200, 255) FlightButton.Text = "DISABLE FLIGHT" end local function StopFlying() if not Flying then return end Flying = false Boosting = false LandingAssistUntil = os.clock() + LANDING_ASSIST_DURATION if Velocity then Velocity:Destroy() end if Orientation then Orientation:Destroy() end if Attachment then Attachment:Destroy() end Velocity = nil Orientation = nil Attachment = nil if Humanoid then Humanoid.AutoRotate = true Humanoid:ChangeState(Enum.HumanoidStateType.GettingUp) end ResetPose() Status.Text = "STATUS: LANDING ASSIST" Status.TextColor3 = Color3.fromRGB(0, 200, 255) FlightButton.Text = "ENABLE FLIGHT" BoostButton.Text = "BOOST: OFF" end FlightButton.Activated:Connect(function() if Flying then StopFlying() else StartFlying() end end) BoostButton.Activated:Connect(function() Boosting = not Boosting BoostButton.Text = Boosting and "BOOST: ON" or "BOOST: OFF" end) BoomButton.Activated:Connect(function() BoomEnabled = not BoomEnabled BoomButton.Text = BoomEnabled and "SONIC BOOM: ON" or "SONIC BOOM: OFF" end) --================================================== -- FLIGHT ENGINE --================================================== RunService.PreSimulation:Connect(function(dt) if not Root or not Humanoid then return end if not Flying then SafeLandingAssist() if os.clock() > LandingAssistUntil and Status.Text == "STATUS: LANDING ASSIST" then Status.Text = "STATUS: GROUNDED" Status.TextColor3 = Color3.fromRGB(0, 255, 120) end return end local camera = workspace.CurrentCamera if not camera then return end local cameraLook = camera.CFrame.LookVector local cameraRight = camera.CFrame.RightVector local move = Humanoid.MoveDirection local flatForward = Vector3.new(cameraLook.X, 0, cameraLook.Z) local flatRight = Vector3.new(cameraRight.X, 0, cameraRight.Z) if flatForward.Magnitude > 0.01 then flatForward = flatForward.Unit else flatForward = Vector3.new(0, 0, -1) end if flatRight.Magnitude > 0.01 then flatRight = flatRight.Unit else flatRight = Vector3.new(1, 0, 0) end local forwardInput = move:Dot(flatForward) local sideInput = move:Dot(flatRight) local direction = cameraLook * forwardInput + cameraRight * sideInput local moving = direction.Magnitude > 0.05 local actualSpeed = Speed if Boosting then actualSpeed = math.min( Speed * BOOST_MULTIPLIER, MAX_SPEED ) end local alpha = 1 - math.exp(-ANIMATION_SMOOTHNESS * dt) if moving then direction = direction.Unit Velocity.VectorVelocity = direction * actualSpeed local sideways = math.clamp(sideInput, -1, 1) local facing = CFrame.lookAt( Root.Position, Root.Position + direction, Vector3.yAxis ) local horizontalPose = facing * CFrame.Angles(math.rad(-90), 0, 0) local bank = math.rad(-sideways * BANK_ANGLE) Orientation.CFrame = CFrame.fromAxisAngle(direction, bank) * horizontalPose SupermanPose(sideways, alpha) else Velocity.VectorVelocity = Vector3.zero local flatLook = Vector3.new( cameraLook.X, 0, cameraLook.Z ) if flatLook.Magnitude > 0.01 then Orientation.CFrame = CFrame.lookAt( Root.Position, Root.Position + flatLook.Unit ) end HoverPose(alpha) end if BoomEnabled and moving and actualSpeed >= BOOM_SPEED and os.clock() - LastBoom >= 1.5 then LastBoom = os.clock() SonicBoom() end end) --================================================== -- RESPAWN --================================================== Player.CharacterAdded:Connect(function(char) if Flying then StopFlying() end LandingAssistUntil = 0 task.wait(1) SetupCharacter(char) Status.Text = "STATUS: GROUNDED" FlightButton.Text = "ENABLE FLIGHT" end) print("PROJECT MAN OF STEEL R15 LOADED")