Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Rayfield = loadstring(game:HttpGet("https://sirius.menu/rayfield"))()
- local Window = Rayfield:CreateWindow({
- Name = "Or4ng3 Ultimate FPS Optimizer",
- LoadingTitle = "Or4ng3 Performance System",
- LoadingSubtitle = "Optimizing Device",
- ConfigurationSaving = {
- Enabled = true,
- FolderName = "Or4ng3FPS",
- FileName = "Or4ng3Config"
- }
- })
- local FPS = 0
- local RunService = game:GetService("RunService")
- local Stats = game:GetService("Stats")
- local UserInputService = game:GetService("UserInputService")
- local fpsEnabled = false
- local autoBoost = false
- local ultraBoost = false
- local FPSBox = Instance.new("Frame")
- FPSBox.Size = UDim2.new(0,160,0,60)
- FPSBox.Position = UDim2.new(0,10,0,200)
- FPSBox.BackgroundTransparency = 0.35
- FPSBox.BackgroundColor3 = Color3.fromRGB(30,30,30)
- FPSBox.Visible = false
- FPSBox.Parent = game.CoreGui
- local Blur = Instance.new("UIStroke")
- Blur.Color = Color3.fromRGB(200,200,200)
- Blur.Thickness = 1
- Blur.Parent = FPSBox
- local FPSLabel = Instance.new("TextLabel")
- FPSLabel.Size = UDim2.new(1,0,1,0)
- FPSLabel.BackgroundTransparency = 1
- FPSLabel.TextScaled = true
- FPSLabel.Font = Enum.Font.SourceSansBold
- FPSLabel.Text = "FPS: 0"
- FPSLabel.Parent = FPSBox
- local dragging = false
- local dragInput
- local dragStart
- local startPos
- FPSBox.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 then
- dragging = true
- dragStart = input.Position
- startPos = FPSBox.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- FPSBox.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement then
- dragInput = input
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- local delta = input.Position - dragStart
- FPSBox.Position = UDim2.new(startPos.X.Scale,startPos.X.Offset + delta.X,startPos.Y.Scale,startPos.Y.Offset + delta.Y)
- end
- end)
- RunService.RenderStepped:Connect(function()
- FPS = math.floor(1 / RunService.RenderStepped:Wait())
- if fpsEnabled then
- FPSLabel.Text = "FPS: "..FPS
- if FPS >= 80 then
- FPSLabel.TextColor3 = Color3.fromRGB(0,255,0)
- elseif FPS >= 45 then
- FPSLabel.TextColor3 = Color3.fromRGB(255,255,0)
- else
- FPSLabel.TextColor3 = Color3.fromRGB(255,0,0)
- end
- end
- end)
- local MainTab = Window:CreateTab("Performance")
- MainTab:CreateToggle({
- Name = "FPS Counter",
- CurrentValue = false,
- Callback = function(v)
- fpsEnabled = v
- FPSBox.Visible = v
- end
- })
- MainTab:CreateToggle({
- Name = "Auto FPS Boost",
- CurrentValue = false,
- Callback = function(v)
- autoBoost = v
- end
- })
- MainTab:CreateButton({
- Name = "Ultra FPS Boost",
- Callback = function()
- ultraBoost = true
- for i,v in pairs(game:GetDescendants()) do
- if v:IsA("ParticleEmitter") or v:IsA("Trail") then
- v.Enabled = false
- end
- if v:IsA("BasePart") then
- v.Material = Enum.Material.Plastic
- v.Reflectance = 0
- end
- end
- local lighting = game:GetService("Lighting")
- lighting.GlobalShadows = false
- lighting.FogEnd = 9e9
- settings().Rendering.QualityLevel = "Level01"
- end
- })
- local UnlockTab = Window:CreateTab("FPS Unlocker")
- UnlockTab:CreateButton({
- Name = "Unlock 120+ FPS",
- Callback = function()
- setfpscap(120)
- end
- })
- UnlockTab:CreateButton({
- Name = "Unlock 240 FPS",
- Callback = function()
- setfpscap(240)
- end
- })
- local StatsTab = Window:CreateTab("Stats")
- StatsTab:CreateParagraph({
- Title = "Performance",
- Content = "Use the FPS Counter to monitor performance and enable Auto Boost for smoother gameplay."
- })
- while true do
- task.wait(2)
- if autoBoost then
- if FPS < 40 then
- for i,v in pairs(game:GetDescendants()) do
- if v:IsA("ParticleEmitter") then
- v.Enabled = false
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment