ADVERTISEMENTREMOVE ADS

FPS Bypasser doesnt work on krnl

Universal script
3 months ago
Script preview thumbnail
Script Preview

Description

This is an FPS Bypasser script.

ADVERTISEMENTREMOVE ADS
311 Lines • 8.74 KiB
Raw
local Players = game:GetService("Players")
local UIS = game:GetService("UserInputService")
local player = Players.LocalPlayer
local pg = player:WaitForChild("PlayerGui")
local APPLY_INTERVAL = 1
local function new(class, props)
local obj = Instance.new(class)
for k, v in pairs(props or {}) do
if k ~= "Parent" then obj[k] = v end
end
if props and props.Parent then obj.Parent = props.Parent end
return obj
end
local screenGui = new("ScreenGui", {
Name = "FPSBypasserGUI",
ResetOnSpawn = false,
Parent = pg
})
local mainFrame = new("Frame", {
Name = "MainFrame",
Parent = screenGui,
AnchorPoint = Vector2.new(0.5, 0.5),
Position = UDim2.new(0.5, 0, 0.5, 0),
Size = UDim2.new(0, 400, 0, 240),
BackgroundColor3 = Color3.fromRGB(30, 30, 30),
BorderSizePixel = 1,
Draggable = true,
Active = true
})
local titleBar = new("Frame", {
Name = "TitleBar",
Parent = mainFrame,
Size = UDim2.new(1, 0, 0, 36),
BackgroundColor3 = Color3.fromRGB(45,45,45),
BorderSizePixel = 0,
Active = true
})
new("TextLabel", {
Parent = titleBar,
Size = UDim2.new(1, -100, 1, 0),
Position = UDim2.new(0,10,0,0),
Text = "FPS Bypasser",
TextColor3 = Color3.fromRGB(255,255,255),
BackgroundTransparency = 1,
Font = Enum.Font.SourceSansBold,
TextSize = 18,
TextXAlignment = Enum.TextXAlignment.Left
})
local closeBtn = new("TextButton", {
Parent = titleBar,
Size = UDim2.new(0,30,0,24),
Position = UDim2.new(1, -40, 0.5, -12),
Text = "X",
BackgroundColor3 = Color3.fromRGB(150, 50, 50),
TextColor3 = Color3.fromRGB(255,255,255),
Font = Enum.Font.SourceSansBold,
TextSize = 18,
})
local minimizeBtn = new("TextButton", {
Parent = titleBar,
Size = UDim2.new(0,30,0,24),
Position = UDim2.new(1, -80, 0.5, -12),
Text = "-",
BackgroundColor3 = Color3.fromRGB(100, 100, 100),
TextColor3 = Color3.fromRGB(255,255,255),
Font = Enum.Font.SourceSansBold,
TextSize = 18,
})
local content = new("Frame", {
Parent = mainFrame,
Position = UDim2.new(0, 0, 0, 36),
Size = UDim2.new(1, 0, 1, -36),
BackgroundTransparency = 1,
})
local inputLabel = new("TextLabel", {
Parent = content,
Position = UDim2.new(0, 16, 0, 12),
Size = UDim2.new(0, 140, 0, 24),
Text = "Set FPS (number):",
BackgroundTransparency = 1,
TextColor3 = Color3.fromRGB(255,255,255),
Font = Enum.Font.SourceSans,
TextSize = 16,
TextXAlignment = Enum.TextXAlignment.Left
})
local fpsBox = new("TextBox", {
Parent = content,
Position = UDim2.new(0, 160, 0, 10),
Size = UDim2.new(0, 110, 0, 28),
Text = "60",
ClearTextOnFocus = false,
TextEditable = true,
BackgroundColor3 = Color3.fromRGB(45,45,45),
TextColor3 = Color3.fromRGB(255,255,255),
Font = Enum.Font.SourceSans,
TextSize = 16,
})
local bypassBtn = new("TextButton", {
Parent = content,
Position = UDim2.new(0, 16, 0, 56),
Size = UDim2.new(0, 120, 0, 36),
Text = "Bypass: OFF",
BackgroundColor3 = Color3.fromRGB(180, 60, 60),
TextColor3 = Color3.fromRGB(255,255,255),
Font = Enum.Font.SourceSansBold,
TextSize = 18,
})
local readBtn = new("TextButton", {
Parent = content,
Position = UDim2.new(0, 160, 0, 56),
Size = UDim2.new(0, 180, 0, 36),
Text = "Read Me (Important)",
BackgroundColor3 = Color3.fromRGB(80, 80, 80),
TextColor3 = Color3.fromRGB(255,255,255),
Font = Enum.Font.SourceSansBold,
TextSize = 14,
})
local floatBtn = new("TextButton", {
Parent = screenGui,
Name = "FloatingFPSBtn",
Size = UDim2.new(0, 60, 0, 30),
Position = UDim2.new(0, 20, 0, 60),
Text = "FPS",
BackgroundColor3 = Color3.fromRGB(60,60,60),
TextColor3 = Color3.fromRGB(255,255,255),
Font = Enum.Font.SourceSansBold,
TextSize = 16,
Visible = false,
Draggable = true,
Active = true
})
local readGui = new("Frame", {
Parent = screenGui,
Name = "ReadMeFrame",
Size = UDim2.new(0, 420, 0, 260),
Position = UDim2.new(0.5, -210, 0.5, -130),
BackgroundColor3 = Color3.fromRGB(20,20,20),
Visible = false,
Active = true,
BorderSizePixel = 1
})
new("TextLabel", {
Parent = readGui,
Position = UDim2.new(0, 12, 0, 12),
Size = UDim2.new(1, -24, 1, -48),
Text = [[WARNING: This Bypass system sets the maximum FPS your device can handle.
If you set more than the value your device can handle, it will set the maximum value your device can handle.
To avoid FPS drops, it reapplies your value every 1 second.
Second Warning:
This bypasser doesn't work on KRNL :(]],
TextWrapped = true,
TextYAlignment = Enum.TextYAlignment.Top,
TextColor3 = Color3.fromRGB(230,230,230),
BackgroundTransparency = 1,
Font = Enum.Font.SourceSans,
TextSize = 15
})
local readClose = new("TextButton", {
Parent = readGui,
Size = UDim2.new(0, 36, 0, 28),
Position = UDim2.new(1, -48, 0, 12),
Text = "X",
BackgroundColor3 = Color3.fromRGB(150,50,50),
Font = Enum.Font.SourceSansBold,
TextSize = 16,
TextColor3 = Color3.fromRGB(255,255,255)
})
local bypassEnabled = false
local desiredFPS = tonumber(fpsBox.Text) or 60
local running = true
local minimized = false
local function makeDraggable(guiObject, dragHandle)
dragHandle = dragHandle or guiObject
local dragging = false
local dragStart, startPos
dragHandle.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = true
dragStart = input.Position
startPos = guiObject.Position
input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End then
dragging = false
end
end)
end
end)
UIS.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement and dragging then
local delta = input.Position - dragStart
guiObject.Position = UDim2.new(
startPos.X.Scale,
startPos.X.Offset + delta.X,
startPos.Y.Scale,
startPos.Y.Offset + delta.Y
)
end
end)
end
makeDraggable(mainFrame, titleBar)
makeDraggable(floatBtn, floatBtn)
closeBtn.MouseButton1Click:Connect(function()
mainFrame:Destroy()
floatBtn:Destroy()
end)
minimizeBtn.MouseButton1Click:Connect(function()
minimized = not minimized
mainFrame.Visible = not minimized
floatBtn.Visible = minimized
end)
floatBtn.MouseButton1Click:Connect(function()
mainFrame.Visible = true
floatBtn.Visible = false
minimized = false
end)
readBtn.MouseButton1Click:Connect(function()
readGui.Visible = true
end)
readClose.MouseButton1Click:Connect(function()
readGui.Visible = false
end)
local function setBypassState(state)
bypassEnabled = state
if bypassEnabled then
bypassBtn.BackgroundColor3 = Color3.fromRGB(60, 160, 80)
bypassBtn.Text = "Bypass: ON"
else
bypassBtn.BackgroundColor3 = Color3.fromRGB(180, 60, 60)
bypassBtn.Text = "Bypass: OFF"
pcall(function()
if type(setfpscap) == "function" then
setfpscap(0)
end
end)
end
end
bypassBtn.MouseButton1Click:Connect(function()
if bypassEnabled then
setBypassState(false)
return
end
local num = tonumber(fpsBox.Text)
if not num or num <= 0 then
fpsBox.BackgroundColor3 = Color3.fromRGB(160,50,50)
task.delay(0.8, function()
if fpsBox and fpsBox.Parent then
fpsBox.BackgroundColor3 = Color3.fromRGB(45,45,45)
end
end)
return
end
desiredFPS = num
setBypassState(true)
end)
task.spawn(function()
while running do
if bypassEnabled then
local ok, err = pcall(function()
if type(setfpscap) == "function" then
setfpscap(desiredFPS)
else
error("setfpscap not available")
end
end)
if not ok then
warn("FPS Bypasser error: "..tostring(err))
setBypassState(false)
end
end
task.wait(APPLY_INTERVAL)
end
end)
player.AncestryChanged:Connect(function()
if not player:IsDescendantOf(game) then
running = false
end
end)
setBypassState(false)
--[[
Thank you to everyone who used this script
=====MADE BY SYDRUS=====
]]--
ADVERTISEMENTREMOVE ADS

Comments

0 comments
to add a comment
Loading comments
ADVERTISEMENTREMOVE ADS