Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- FF2 Script: Jump Peak Freeze + GUI + FPS + Texture Removal
- local Players = game:GetService("Players") local RunService = game:GetService("RunService") local Lighting = game:GetService("Lighting") local lp = Players.LocalPlayer local StatsService = game:GetService("Stats")
- repeat wait() until lp and lp.Character and lp:FindFirstChild("PlayerGui") local char = lp.Character local humanoid = char:WaitForChild("Humanoid") local hrp = char:WaitForChild("HumanoidRootPart")
- -- FPS Unlocker
- if setfpscap then pcall(function() setfpscap(120) end) end
- -- Remove all textures
- local function removeTextures() for _, obj in ipairs(game:GetDescendants()) do if obj:IsA("Texture") or obj:IsA("Decal") or obj:IsA("SurfaceAppearance") or obj:IsA("ShirtGraphic") then pcall(function() obj:Destroy() end) end end end removeTextures() game.DescendantAdded:Connect(function(obj) if obj:IsA("Texture") or obj:IsA("Decal") or obj:IsA("SurfaceAppearance") or obj:IsA("ShirtGraphic") then pcall(function() obj:Destroy() end) end end)
- -- GUI
- local gui = Instance.new("ScreenGui") gui.Name = "JumpControlGui" gui.ResetOnSpawn = false gui.IgnoreGuiInset = false gui.Parent = lp:WaitForChild("PlayerGui")
- local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 200, 0, 100) frame.Position = UDim2.new(0.5, -100, 0.5, -50) frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25) frame.Active = true frame.Draggable = true frame.Parent = gui
- local toggleButton = Instance.new("TextButton") toggleButton.Size = UDim2.new(1, 0, 0.5, 0) toggleButton.Position = UDim2.new(0, 0, 0, 0) toggleButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0) toggleButton.Font = Enum.Font.SourceSansBold toggleButton.TextSize = 16 toggleButton.TextColor3 = Color3.new(1, 1, 1) toggleButton.Text = "Freeze: ON" toggleButton.Parent = frame
- local minimizeButton = Instance.new("TextButton") minimizeButton.Size = UDim2.new(1, 0, 0.5, 0) minimizeButton.Position = UDim2.new(0, 0, 0.5, 0) minimizeButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100) minimizeButton.Font = Enum.Font.SourceSansBold minimizeButton.TextSize = 14 minimizeButton.TextColor3 = Color3.new(1, 1, 1) minimizeButton.Text = "Shrink" minimizeButton.Parent = frame
- local freezeEnabled = true local minimized = false
- toggleButton.MouseButton1Click:Connect(function() freezeEnabled = not freezeEnabled toggleButton.Text = freezeEnabled and "Freeze: ON" or "Freeze: OFF" toggleButton.BackgroundColor3 = freezeEnabled and Color3.fromRGB(0, 170, 0) or Color3.fromRGB(170, 0, 0) end)
- minimizeButton.MouseButton1Click:Connect(function() minimized = not minimized frame.Size = minimized and UDim2.new(0, 120, 0, 30) or UDim2.new(0, 200, 0, 100) toggleButton.Visible = not minimized minimizeButton.Text = minimized and "Expand" or "Shrink" end)
- -- FPS and Ping Display
- local statsLabel = Instance.new("TextLabel") statsLabel.Size = UDim2.new(0, 300, 0, 20) statsLabel.Position = UDim2.new(1, -310, 0, 5) statsLabel.AnchorPoint = Vector2.new(0, 0) statsLabel.BackgroundTransparency = 1 statsLabel.TextColor3 = Color3.new(1, 1, 1) statsLabel.TextStrokeTransparency = 0.5 statsLabel.Font = Enum.Font.SourceSansBold statsLabel.TextSize = 16 statsLabel.TextXAlignment = Enum.TextXAlignment.Right statsLabel.Text = "FPS: -- | Ping: --" statsLabel.Parent = gui
- local frameCounter, totalTime = 0, 0 RunService.RenderStepped:Connect(function(dt) frameCounter += 1 totalTime += dt if totalTime >= 1 then local fps = frameCounter frameCounter, totalTime = 0, 0
- local ping = "N/A"
- local success, result = pcall(function()
- return math.floor(lp:GetNetworkPing() * 1000)
- end)
- if success and result then
- ping = result .. " ms"
- end
- statsLabel.Text = "FPS: " .. fps .. " | Ping: " .. ping
- end
- end)
- -- Freeze at Peak Jump
- local jumping = false local frozen = false humanoid.StateChanged:Connect(function(_, newState) if not freezeEnabled then return end if newState == Enum.HumanoidStateType.Jumping then jumping = true elseif newState == Enum.HumanoidStateType.Freefall and jumping and not frozen then task.spawn(function() while hrp.Velocity.Y > 0 do task.wait() end frozen = true local wasAnchored = hrp.Anchored hrp.Anchored = true wait(0.85) hrp.Anchored = wasAnchored frozen = false jumping = false end) elseif newState == Enum.HumanoidStateType.Landed then jumping = false end end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement