Back to Scripts
Klin x OS V1.6

Klin x OS V1.6

ScriptBlox
Universal Free

Game: Universal Script 📌

44 Views
0 Likes
0 Dislikes
Splix

Splix

offline

Features

Klin V1.6 (Full Version) Release date: 3/1/25

Tags

Universal Menu Hack Premium Updatable

Script Code

-- Klin x OS V1.6
local CoreGui = game:GetService("CoreGui")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local localPlayer = Players.LocalPlayer

local MENU_COLOR = Color3.fromRGB(20, 20, 20)
local BORDER_COLOR = Color3.fromRGB(255, 255, 255)
local TEXT_COLOR = Color3.fromRGB(220, 220, 220)

local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "KlinOS"
ScreenGui.ResetOnSpawn = false
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling

local ToggleButton = Instance.new("TextButton")
ToggleButton.Name = "KlinToggle"
ToggleButton.Size = UDim2.new(0, 40, 0, 40)
ToggleButton.Position = UDim2.new(0, 20, 0.5, -20)
ToggleButton.BackgroundColor3 = MENU_COLOR
ToggleButton.BackgroundTransparency = 0.2
ToggleButton.BorderSizePixel = 1.5
ToggleButton.BorderColor3 = BORDER_COLOR
ToggleButton.Text = "K"
ToggleButton.TextColor3 = TEXT_COLOR
ToggleButton.Font = Enum.Font.Code
ToggleButton.TextSize = 20
ToggleButton.Active = true
ToggleButton.Draggable = true
ToggleButton.Parent = ScreenGui

local MainFrame = Instance.new("Frame")
MainFrame.Size = UDim2.new(0, 300, 0, 250)
MainFrame.Position = UDim2.new(0.5, -150, 0.5, -125)
MainFrame.BackgroundColor3 = MENU_COLOR
MainFrame.BackgroundTransparency = 0.1
MainFrame.BorderSizePixel = 1.5
MainFrame.BorderColor3 = BORDER_COLOR
MainFrame.Active = true
MainFrame.Draggable = true
MainFrame.Visible = false

local TitleBar = Instance.new("Frame")
TitleBar.Size = UDim2.new(1, 0, 0, 25)
TitleBar.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
TitleBar.BorderSizePixel = 0

local TitleLabel = Instance.new("TextLabel")
TitleLabel.Size = UDim2.new(0, 120, 1, 0)
TitleLabel.Position = UDim2.new(0, 5, 0, 0)
TitleLabel.BackgroundTransparency = 1
TitleLabel.Text = "Klin x OS V1.6"
TitleLabel.TextColor3 = TEXT_COLOR
TitleLabel.Font = Enum.Font.Code
TitleLabel.TextSize = 14
TitleLabel.TextXAlignment = Enum.TextXAlignment.Left

local MinimizeButton = Instance.new("TextButton")
MinimizeButton.Size = UDim2.new(0, 40, 0, 20)
MinimizeButton.Position = UDim2.new(1, -45, 0, 2)
MinimizeButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
MinimizeButton.BorderColor3 = Color3.fromRGB(100, 100, 100)
MinimizeButton.Text = "-"
MinimizeButton.TextColor3 = TEXT_COLOR
MinimizeButton.Font = Enum.Font.Code
MinimizeButton.TextSize = 14

local DeleteButton = Instance.new("TextButton")
DeleteButton.Size = UDim2.new(0, 40, 0, 20)
DeleteButton.Position = UDim2.new(1, -93, 0, 2)
DeleteButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
DeleteButton.BorderColor3 = Color3.fromRGB(100, 100, 100)
DeleteButton.Text = "×"
DeleteButton.TextColor3 = TEXT_COLOR
DeleteButton.Font = Enum.Font.Code
DeleteButton.TextSize = 14

local NavigationFrame = Instance.new("Frame")
NavigationFrame.Size = UDim2.new(0, 100, 1, -25)
NavigationFrame.Position = UDim2.new(0, 0, 0, 25)
NavigationFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
NavigationFrame.BorderSizePixel = 0

local MenuButton = Instance.new("TextButton")
MenuButton.Size = UDim2.new(1, -10, 0, 30)
MenuButton.Position = UDim2.new(0, 5, 0, 10)
MenuButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
MenuButton.BorderColor3 = Color3.fromRGB(80, 80, 80)
MenuButton.Text = "Main"
MenuButton.TextColor3 = TEXT_COLOR
MenuButton.Font = Enum.Font.Code
MenuButton.TextSize = 12

local ScriptsButton = Instance.new("TextButton")
ScriptsButton.Size = UDim2.new(1, -10, 0, 30)
ScriptsButton.Position = UDim2.new(0, 5, 0, 45)
ScriptsButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
ScriptsButton.BorderColor3 = Color3.fromRGB(80, 80, 80)
ScriptsButton.Text = "Scripts"
ScriptsButton.TextColor3 = TEXT_COLOR
ScriptsButton.Font = Enum.Font.Code
ScriptsButton.TextSize = 12

local GamesButton = Instance.new("TextButton")
GamesButton.Size = UDim2.new(1, -10, 0, 30)
GamesButton.Position = UDim2.new(0, 5, 0, 80)
GamesButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
GamesButton.BorderColor3 = Color3.fromRGB(80, 80, 80)
GamesButton.Text = "Games"
GamesButton.TextColor3 = TEXT_COLOR
GamesButton.Font = Enum.Font.Code
GamesButton.TextSize = 12

local SettingsButton = Instance.new("TextButton")
SettingsButton.Size = UDim2.new(1, -10, 0, 30)
SettingsButton.Position = UDim2.new(0, 5, 0, 115)
SettingsButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
SettingsButton.BorderColor3 = Color3.fromRGB(80, 80, 80)
SettingsButton.Text = "Settings"
SettingsButton.TextColor3 = TEXT_COLOR
SettingsButton.Font = Enum.Font.Code
SettingsButton.TextSize = 12

local ContentFrame = Instance.new("ScrollingFrame")
ContentFrame.Size = UDim2.new(1, -100, 1, -25)
ContentFrame.Position = UDim2.new(0, 100, 0, 25)
ContentFrame.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
ContentFrame.BackgroundTransparency = 0.1
ContentFrame.BorderSizePixel = 0
ContentFrame.ScrollBarThickness = 5
ContentFrame.ScrollBarImageColor3 = Color3.fromRGB(120, 120, 120)
ContentFrame.CanvasSize = UDim2.new(0, 0, 0, 500)

local MenuContent = Instance.new("Frame")
MenuContent.Size = UDim2.new(1, 0, 1, 0)
MenuContent.BackgroundTransparency = 1
MenuContent.Visible = true

local MenuTextLabel = Instance.new("TextLabel")
MenuTextLabel.Size = UDim2.new(1, -20, 1, -20)
MenuTextLabel.Position = UDim2.new(0, 10, 0, 10)
MenuTextLabel.BackgroundTransparency = 1
MenuTextLabel.Text = "Loading..."
MenuTextLabel.TextColor3 = TEXT_COLOR
MenuTextLabel.Font = Enum.Font.Code
MenuTextLabel.TextSize = 12
MenuTextLabel.TextYAlignment = Enum.TextYAlignment.Top
MenuTextLabel.TextXAlignment = Enum.TextXAlignment.Left
MenuTextLabel.TextWrapped = true
MenuTextLabel.Parent = MenuContent

local ScriptsContent = Instance.new("ScrollingFrame")
ScriptsContent.Size = UDim2.new(1, 0, 1, 0)
ScriptsContent.BackgroundTransparency = 1
ScriptsContent.Visible = false
ScriptsContent.ScrollBarThickness = 5
ScriptsContent.ScrollBarImageColor3 = Color3.fromRGB(120, 120, 120)
ScriptsContent.CanvasSize = UDim2.new(0, 0, 0, 100)

local DexButton = Instance.new("TextButton")
DexButton.Size = UDim2.new(1, -20, 0, 25)
DexButton.Position = UDim2.new(0, 10, 0, 10)
DexButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
DexButton.BorderColor3 = Color3.fromRGB(80, 80, 80)
DexButton.Text = "Dex Explorer"
DexButton.TextColor3 = TEXT_COLOR
DexButton.Font = Enum.Font.Code
DexButton.TextSize = 12
DexButton.Parent = ScriptsContent

local ScriptsLabel = Instance.new("TextLabel")
ScriptsLabel.Size = UDim2.new(1, -20, 1, -20)
ScriptsLabel.Position = UDim2.new(0, 10, 0, 10)
ScriptsLabel.BackgroundTransparency = 1
ScriptsLabel.Text = "Scripts"
ScriptsLabel.TextColor3 = TEXT_COLOR
ScriptsLabel.Font = Enum.Font.Code
ScriptsLabel.TextSize = 16
ScriptsLabel.TextXAlignment = Enum.TextXAlignment.Center
ScriptsLabel.TextYAlignment = Enum.TextYAlignment.Center
ScriptsLabel.Parent = ScriptsContent

local GamesContent = Instance.new("Frame")
GamesContent.Size = UDim2.new(1, 0, 1, 0)
GamesContent.BackgroundTransparency = 1
GamesContent.Visible = false

local GamesLabel = Instance.new("TextLabel")
GamesLabel.Size = UDim2.new(1, -20, 1, -20)
GamesLabel.Position = UDim2.new(0, 10, 0, 10)
GamesLabel.BackgroundTransparency = 1
GamesLabel.Text = "Games"
GamesLabel.TextColor3 = TEXT_COLOR
GamesLabel.Font = Enum.Font.Code
GamesLabel.TextSize = 16
GamesLabel.TextXAlignment = Enum.TextXAlignment.Center
GamesLabel.TextYAlignment = Enum.TextYAlignment.Center
GamesLabel.Parent = GamesContent

local BSSButton = Instance.new("TextButton")
BSSButton.Size = UDim2.new(1, -20, 0, 25)
BSSButton.Position = UDim2.new(0, 10, 0, 10)
BSSButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
BSSButton.BorderColor3 = Color3.fromRGB(100, 100, 100)
BSSButton.Text = "Bee Swarm Simulator"
BSSButton.TextColor3 = TEXT_COLOR
BSSButton.Font = Enum.Font.Code
BSSButton.TextSize = 12
BSSButton.Parent = GamesContent

BSSButton.MouseButton1Click:Connect(function()
    loadstring(game:HttpGet("https://pastefy.app/JBdl1dOs/raw"))()
end)

local SettingsContent = Instance.new("Frame")
SettingsContent.Size = UDim2.new(1, 0, 1, 0)
SettingsContent.BackgroundTransparency = 1
SettingsContent.Visible = false

local SettingsLabel = Instance.new("TextLabel")
SettingsLabel.Size = UDim2.new(1, -20, 0, 30)
SettingsLabel.Position = UDim2.new(0, 10, 0, 10)
SettingsLabel.BackgroundTransparency = 1
SettingsLabel.Text = "Settings"
SettingsLabel.TextColor3 = TEXT_COLOR
SettingsLabel.Font = Enum.Font.Code
SettingsLabel.TextSize = 16
SettingsLabel.TextXAlignment = Enum.TextXAlignment.Center
SettingsLabel.Parent = SettingsContent

local TransparencyButton = Instance.new("TextButton")
TransparencyButton.Size = UDim2.new(1, -20, 0, 25)
TransparencyButton.Position = UDim2.new(0, 10, 0, 50)
TransparencyButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
TransparencyButton.BorderColor3 = Color3.fromRGB(100, 100, 100)
TransparencyButton.Text = "Transparency: 0.10"
TransparencyButton.TextColor3 = TEXT_COLOR
TransparencyButton.Font = Enum.Font.Code
TransparencyButton.TextSize = 12

local TransparencyTextBox = Instance.new("TextBox")
TransparencyTextBox.Size = UDim2.new(0.2, 0, 1, -4)
TransparencyTextBox.Position = UDim2.new(0.8, 0, 0, 2)
TransparencyTextBox.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
TransparencyTextBox.BorderColor3 = Color3.fromRGB(100, 100, 100)
TransparencyTextBox.PlaceholderText = "0-1"
TransparencyTextBox.Text = "0.10"
TransparencyTextBox.TextColor3 = TEXT_COLOR
TransparencyTextBox.Font = Enum.Font.Code
TransparencyTextBox.TextSize = 10
TransparencyTextBox.ClearTextOnFocus = false
TransparencyTextBox.Parent = TransparencyButton

local SizeButton = Instance.new("TextButton")
SizeButton.Size = UDim2.new(1, -20, 0, 25)
SizeButton.Position = UDim2.new(0, 10, 0, 80)
SizeButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
SizeButton.BorderColor3 = Color3.fromRGB(100, 100, 100)
SizeButton.Text = "Size: 300x250"
SizeButton.TextColor3 = TEXT_COLOR
SizeButton.Font = Enum.Font.Code
SizeButton.TextSize = 12

local SizeTextBox = Instance.new("TextBox")
SizeTextBox.Size = UDim2.new(0.2, 0, 1, -4)
SizeTextBox.Position = UDim2.new(0.8, 0, 0, 2)
SizeTextBox.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
SizeTextBox.BorderColor3 = Color3.fromRGB(100, 100, 100)
SizeTextBox.PlaceholderText = "500x400"
SizeTextBox.Text = "300x250"
SizeTextBox.TextColor3 = TEXT_COLOR
SizeTextBox.Font = Enum.Font.Code
SizeTextBox.TextSize = 10
SizeTextBox.ClearTextOnFocus = false
SizeTextBox.Parent = SizeButton

local ApplyButton = Instance.new("TextButton")
ApplyButton.Size = UDim2.new(1, -20, 0, 25)
ApplyButton.Position = UDim2.new(0, 10, 0, 110)
ApplyButton.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
ApplyButton.BorderColor3 = Color3.fromRGB(100, 100, 100)
ApplyButton.Text = "Apply"
ApplyButton.TextColor3 = TEXT_COLOR
ApplyButton.Font = Enum.Font.Code
ApplyButton.TextSize = 12

local ResetButton = Instance.new("TextButton")
ResetButton.Size = UDim2.new(1, -20, 0, 25)
ResetButton.Position = UDim2.new(0, 10, 0, 140)
ResetButton.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
ResetButton.BorderColor3 = Color3.fromRGB(100, 100, 100)
ResetButton.Text = "Default"
ResetButton.TextColor3 = TEXT_COLOR
ResetButton.Font = Enum.Font.Code
ResetButton.TextSize = 12

local FPSButton = Instance.new("TextButton")
FPSButton.Size = UDim2.new(1, -20, 0, 25)
FPSButton.Position = UDim2.new(0, 10, 0, 170)
FPSButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
FPSButton.BorderColor3 = Color3.fromRGB(100, 100, 100)
FPSButton.Text = "FPS"
FPSButton.TextColor3 = TEXT_COLOR
FPSButton.Font = Enum.Font.Code
FPSButton.TextSize = 12

MinimizeButton.Parent = TitleBar
DeleteButton.Parent = TitleBar
TitleLabel.Parent = TitleBar
TitleBar.Parent = MainFrame

MenuButton.Parent = NavigationFrame
ScriptsButton.Parent = NavigationFrame
GamesButton.Parent = NavigationFrame
SettingsButton.Parent = NavigationFrame
NavigationFrame.Parent = MainFrame

TransparencyButton.Parent = SettingsContent
SizeButton.Parent = SettingsContent
ApplyButton.Parent = SettingsContent
ResetButton.Parent = SettingsContent
FPSButton.Parent = SettingsContent

MenuContent.Parent = ContentFrame
ScriptsContent.Parent = ContentFrame
GamesContent.Parent = ContentFrame
SettingsContent.Parent = ContentFrame
ContentFrame.Parent = MainFrame
MainFrame.Parent = ScreenGui
ScreenGui.Parent = CoreGui

local state = {
    menuVisible = false,
    currentContent = "Menu",
    fpsCounterActive = false,
    serverInfoLoop = nil
}

local data = {
    originalSize = MainFrame.Size,
    originalPosition = MainFrame.Position,
    originalTransparency = 0.1,
    lastServerUpdate = 0,
    frameCount = 0,
    lastUpdate = tick(),
    fpsDisplay = nil,
    fpsConnection = nil
}

local function toggleMenu()
    state.menuVisible = not state.menuVisible
    MainFrame.Visible = state.menuVisible
    
    if state.menuVisible then
        ToggleButton.Text = "X"
        ToggleButton.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
    else
        ToggleButton.Text = "K"
        ToggleButton.BackgroundColor3 = MENU_COLOR
    end
end

local function showContent(contentName)
    state.currentContent = contentName
    
    MenuContent.Visible = false
    ScriptsContent.Visible = false
    GamesContent.Visible = false
    SettingsContent.Visible = false
    
    if contentName == "Menu" then
        MenuContent.Visible = true
    elseif contentName == "Scripts" then
        ScriptsContent.Visible = true
    elseif contentName == "Games" then
        GamesContent.Visible = true
    elseif contentName == "Settings" then
        SettingsContent.Visible = true
    end
end

MenuButton.MouseButton1Click:Connect(function()
    showContent("Menu")
end)

ScriptsButton.MouseButton1Click:Connect(function()
    showContent("Scripts")
end)

GamesButton.MouseButton1Click:Connect(function()
    showContent("Games")
end)

SettingsButton.MouseButton1Click:Connect(function()
    showContent("Settings")
end)

ToggleButton.MouseButton1Click:Connect(toggleMenu)

MinimizeButton.MouseButton1Click:Connect(function()
    state.menuVisible = false
    MainFrame.Visible = false
    ToggleButton.Text = "K"
    ToggleButton.BackgroundColor3 = MENU_COLOR
end)

DeleteButton.MouseButton1Click:Connect(function()
    ScreenGui:Destroy()
end)

local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(input, gameProcessed)
    if not gameProcessed then
        if input.KeyCode == Enum.KeyCode.RightShift or input.KeyCode == Enum.KeyCode.Insert then
            toggleMenu()
        end
    end
end)

local function updateServerInfo()
    local gameName = "Unknown Game"
    
    pcall(function()
        gameName = game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Name
    end)
    
    local playerCount = #Players:GetPlayers()
    local maxPlayers = game.Players.MaxPlayers
    
    MenuTextLabel.Text = string.format(
        "=== SERVER INFORMATION ===\n\n" ..
        "• Player: %s\n" ..
        "• ServerID: %s\n" ..
        "• Players: %d/%d\n" ..
        "• Game: %s\n\n",
        localPlayer.Name,
        game.JobId,
        playerCount,
        maxPlayers,
        gameName
    )
end

local function startServerInfoLoop()
    if state.serverInfoLoop then
        state.serverInfoLoop:Disconnect()
    end
    
    state.serverInfoLoop = RunService.Heartbeat:Connect(function()
        if tick() - data.lastServerUpdate >= 5 then
            updateServerInfo()
            data.lastServerUpdate = tick()
        end
    end)
end

Players.PlayerAdded:Connect(function()
    if state.currentContent == "Menu" then
        updateServerInfo()
    end
end)

Players.PlayerRemoving:Connect(function()
    if state.currentContent == "Menu" then
        updateServerInfo()
    end
end)

local function applySettingsChanges()
    local transparencyText = TransparencyTextBox.Text
    local transparency = tonumber(transparencyText)
    
    if transparency and transparency >= 0 and transparency <= 1 then
        MainFrame.BackgroundTransparency = transparency
        TransparencyButton.Text = string.format("Transparency: %.2f", transparency)
    else
        TransparencyTextBox.Text = string.format("%.2f", data.originalTransparency)
    end
    
    local sizeText = SizeTextBox.Text
    local width, height = sizeText:match("(%d+)x(%d+)")
    
    if width and height then
        width = tonumber(width)
        height = tonumber(height)
        
        if width and height and width >= 200 and width <= 500 and height >= 150 and height <= 400 then
            data.originalSize = UDim2.new(0, width, 0, height)
            MainFrame.Size = data.originalSize
            SizeButton.Text = string.format("Size: %dx%d", width, height)
        else
            SizeTextBox.Text = string.format("%dx%d", MainFrame.Size.X.Offset, MainFrame.Size.Y.Offset)
        end
    else
        SizeTextBox.Text = string.format("%dx%d", MainFrame.Size.X.Offset, MainFrame.Size.Y.Offset)
    end
end

local function resetToDefaults()
    MainFrame.BackgroundTransparency = data.originalTransparency
    TransparencyTextBox.Text = string.format("%.2f", data.originalTransparency)
    TransparencyButton.Text = string.format("Transparency: %.2f", data.originalTransparency)
    
    MainFrame.Size = UDim2.new(0, 300, 0, 250)
    SizeTextBox.Text = "300x250"
    SizeButton.Text = "Size: 300x250"
end

ApplyButton.MouseButton1Click:Connect(function()
    applySettingsChanges()
    ApplyButton.Text = "Applied!"
    wait(0.5)
    ApplyButton.Text = "Apply"
end)

ResetButton.MouseButton1Click:Connect(function()
    resetToDefaults()
    ResetButton.Text = "Restored!"
    wait(0.5)
    ResetButton.Text = "Default"
end)

local function createFPSDisplay()
    if data.fpsDisplay and data.fpsDisplay.Parent then
        data.fpsDisplay:Destroy()
        data.fpsDisplay = nil
    end
    
    data.fpsDisplay = Instance.new("ScreenGui")
    data.fpsDisplay.Name = "KlinFPSDisplay"
    data.fpsDisplay.ResetOnSpawn = false
    data.fpsDisplay.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
    data.fpsDisplay.DisplayOrder = 999
    
    local frame = Instance.new("Frame")
    frame.Size = UDim2.new(0, 80, 0, 25)
    frame.Position = UDim2.new(1, -85, 0, 5)
    frame.BackgroundColor3 = MENU_COLOR
    frame.BackgroundTransparency = 0.3
    frame.BorderSizePixel = 1
    frame.BorderColor3 = BORDER_COLOR
    
    local fpsLabel = Instance.new("TextLabel")
    fpsLabel.Name = "FPSLabel"
    fpsLabel.Size = UDim2.new(1, 0, 1, 0)
    fpsLabel.BackgroundTransparency = 1
    fpsLabel.Text = "FPS: 60"
    fpsLabel.TextColor3 = TEXT_COLOR
    fpsLabel.Font = Enum.Font.Code
    fpsLabel.TextSize = 12
    fpsLabel.TextXAlignment = Enum.TextXAlignment.Center
    fpsLabel.TextYAlignment = Enum.TextYAlignment.Center
    
    fpsLabel.Parent = frame
    frame.Parent = data.fpsDisplay
    data.fpsDisplay.Parent = CoreGui
end

local function updateFPS()
    data.frameCount = data.frameCount + 1
    local currentTime = tick()
    
    if currentTime - data.lastUpdate >= 0.5 then
        local fps = math.floor(data.frameCount / (currentTime - data.lastUpdate))
        data.frameCount = 0
        data.lastUpdate = currentTime
        
        if data.fpsDisplay and data.fpsDisplay:FindFirstChild("Frame") then
            local frame = data.fpsDisplay.Frame
            if frame and frame:FindFirstChild("FPSLabel") then
                frame.FPSLabel.Text = "FPS: " .. fps
                
                if fps < 20 then
                    frame.FPSLabel.TextColor3 = Color3.fromRGB(255, 50, 50)
                elseif fps < 40 then
                    frame.FPSLabel.TextColor3 = Color3.fromRGB(255, 165, 0)
                else
                    frame.FPSLabel.TextColor3 = Color3.fromRGB(50, 255, 50)
                end
            end
        end
    end
end

local function toggleFPSCounter()
    state.fpsCounterActive = not state.fpsCounterActive
    
    if state.fpsCounterActive then
        createFPSDisplay()
        FPSButton.Text = "FPS [ON]"
        FPSButton.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
        
        if data.fpsConnection then
            data.fpsConnection:Disconnect()
        end
        
        data.fpsConnection = RunService.RenderStepped:Connect(updateFPS)
    else
        if data.fpsDisplay then
            data.fpsDisplay:Destroy()
            data.fpsDisplay = nil
        end
        
        FPSButton.Text = "FPS"
        FPSButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
        
        if data.fpsConnection then
            data.fpsConnection:Disconnect()
            data.fpsConnection = nil
        end
    end
end

FPSButton.MouseButton1Click:Connect(toggleFPSCounter)

local function loadDexExplorer()
    loadstring(game:HttpGet("https://raw.githubusercontent.com/infyiff/backup/main/dex.lua"))()
end

DexButton.MouseButton1Click:Connect(loadDexExplorer)

UserInputService.InputBegan:Connect(function(input, gameProcessed)
    if not gameProcessed and input.KeyCode == Enum.KeyCode.F4 then
        loadDexExplorer()
    end
end)

showContent("Menu")
updateServerInfo()
startServerInfoLoop()

ScreenGui.Destroying:Connect(function()
    if state.serverInfoLoop then
        state.serverInfoLoop:Disconnect()
    end
    
    if data.fpsConnection then
        data.fpsConnection:Disconnect()
    end
    
    if data.fpsDisplay then
        data.fpsDisplay:Destroy()
    end
end)

print("Klin x OS V1.6 Successfully loaded!")

Ratings & Reviews

No reviews yet. Be the first to review this script!

Comments (0)

Please login to comment

Login with Discord

Loading comments...