--[[ KM STUDIO - ULTIMATE SCRIPT (Fixed Audio & Themes) By kami-noymless ]] local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local Lighting = game:GetService("Lighting") local Workspace = game:GetService("Workspace") local VirtualUser = game:GetService("VirtualUser") local TextChatService = game:GetService("TextChatService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local TweenService = game:GetService("TweenService") local SoundService = game:GetService("SoundService") local Stats = game:GetService("Stats") local TeleportService = game:GetService("TeleportService") local HttpService = game:GetService("HttpService") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local camera = Workspace.CurrentCamera if playerGui:FindFirstChild("KMStudioGui") then playerGui.KMStudioGui:Destroy() end if playerGui:FindFirstChild("KMCrosshairGui") then playerGui.KMCrosshairGui:Destroy() end local states = { Speed = false, JumpPower = false, InfJump = false, FPSUnlocker = false, NoClip = false, ESP = false, ChatSpammer = false, Godmode = false, WalkOnWater = false, AntiRagdoll = false, Page2 = false, Page3 = false, Music = false, RainbowMap = false, Fullbright = false, NoLag = false, HitboxExpander = false, NightVision = false, RainbowSkin = false, AntiAFK = false, FlingAll = false, FlingSelected = false, TouchFling = false, Fly = false, Invisible = false, CFrameWalk = false, AntiKick = false, AntiBan = false, AntiCheatV3 = false, SwimAir = false, FakeLag = false, XRay = false, SoundSpammer = false, CustomChatTag = false, CustomCrosshair = false, CrosshairDot = false } local speedValue = 16 local jumpPowerValue = 50 local fovValue = 70 local spinSpeed = 0 local musicVolumeValue = 1 local savedCFrame = nil local crosshairSize = 12 local crosshairGap = 4 local crosshairThickness = 2 local crosshairColorIndex = 1 local crosshairColors = { Color3.fromRGB(0, 255, 100), Color3.fromRGB(255, 0, 0), Color3.fromRGB(0, 120, 255), Color3.fromRGB(255, 255, 0), Color3.fromRGB(255, 255, 255) } local spamText = "KM Studio On Top!" local spamTimer = 0 local spamInterval = 3 local waterPlatform = nil local flySpeed = 55 local flyBodyVelocity = nil local flyBodyGyro = nil local playlist = { {id = 4590657391, name = "Phonk / Action Beat"}, {id = 5419098670, name = "Synthwave Retro"}, {id = 6023422415, name = "EDM Drop"} } local currentPlaylistIndex = 1 local COLOR_OFF = Color3.fromRGB(80, 80, 80) local COLOR_ON = Color3.fromRGB(0, 120, 255) local COLOR_RED = Color3.fromRGB(255, 50, 50) local originalBrightness = Lighting.Brightness local originalClockTime = Lighting.ClockTime local originalGlobalShadows = Lighting.GlobalShadows local originalAmbient = Lighting.Ambient local originalOutdoorAmbient = Lighting.OutdoorAmbient local screenGui = Instance.new("ScreenGui") screenGui.Name = "KMStudioGui" screenGui.ResetOnSpawn = false screenGui.Parent = playerGui local clickSound = Instance.new("Sound") clickSound.Name = "KMButtonClick" clickSound.SoundId = "rbxassetid://9114220461" clickSound.Volume = 0.6 clickSound.Parent = screenGui local function applyClickSound(btn) if btn:IsA("TextButton") then btn.MouseButton1Click:Connect(function() pcall(function() clickSound:Play() end) end) end end -- Ekran ładowania local loadingFrame = Instance.new("Frame") loadingFrame.Size = UDim2.new(0, 260, 0, 100) loadingFrame.Position = UDim2.new(0.5, -130, 0.5, -50) loadingFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50) loadingFrame.BackgroundTransparency = 0.3 loadingFrame.BorderColor3 = Color3.fromRGB(255, 255, 255) loadingFrame.BorderSizePixel = 2 loadingFrame.ZIndex = 20 loadingFrame.Parent = screenGui local loadingTitle = Instance.new("TextLabel") loadingTitle.Size = UDim2.new(1, 0, 0, 40) loadingTitle.Position = UDim2.new(0, 0, 0, 15) loadingTitle.BackgroundTransparency = 1 loadingTitle.Text = "Anti cheat Bypassed" loadingTitle.TextColor3 = Color3.fromRGB(255, 255, 255) loadingTitle.Font = Enum.Font.SourceSansBold loadingTitle.TextSize = 18 loadingTitle.ZIndex = 21 loadingTitle.Parent = loadingFrame local loadingCounter = Instance.new("TextLabel") loadingCounter.Size = UDim2.new(1, 0, 0, 30) loadingCounter.Position = UDim2.new(0, 0, 0, 55) loadingCounter.BackgroundTransparency = 1 loadingCounter.Text = "0%" loadingCounter.TextColor3 = Color3.fromRGB(255, 255, 255) loadingCounter.Font = Enum.Font.SourceSansBold loadingCounter.TextSize = 16 loadingCounter.ZIndex = 21 loadingCounter.Parent = loadingFrame local mainFrame = Instance.new("Frame") mainFrame.Name = "MainFrame" mainFrame.Size = UDim2.new(0, 260, 0, 320) mainFrame.Position = UDim2.new(0.5, -130, 0.5, -160) mainFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40) mainFrame.BackgroundTransparency = 0.4 mainFrame.BorderColor3 = Color3.fromRGB(255, 255, 255) mainFrame.BorderSizePixel = 2 mainFrame.ClipsDescendants = true mainFrame.Active = true mainFrame.Draggable = true mainFrame.Visible = false mainFrame.Parent = screenGui task.spawn(function() for i = 1, 100 do loadingCounter.Text = i .. "%" task.wait(0.015) end local fadeOut = TweenService:Create(loadingFrame, TweenInfo.new(0.3), {BackgroundTransparency = 1}) fadeOut:Play() task.wait(0.3) loadingFrame:Destroy() mainFrame.Size = UDim2.new(0, 10, 0, 10) mainFrame.Position = UDim2.new(0.5, -5, 0.5, -5) mainFrame.Visible = true local introTween = TweenService:Create(mainFrame, TweenInfo.new(0.35, Enum.EasingStyle.Back, Enum.EasingDirection.Out), { Size = UDim2.new(0, 260, 0, 320), Position = UDim2.new(0.5, -130, 0.5, -160) }) introTween:Play() end) local tvFlash = Instance.new("Frame") tvFlash.Size = UDim2.new(1, 0, 1, 0) tvFlash.BackgroundColor3 = Color3.fromRGB(255, 255, 255) tvFlash.BackgroundTransparency = 1 tvFlash.BorderSizePixel = 0 tvFlash.ZIndex = 10 tvFlash.Parent = mainFrame local glowWave = Instance.new("Frame") glowWave.Size = UDim2.new(1, 0, 0, 0) glowWave.Position = UDim2.new(0, 0, 1, 0) glowWave.AnchorPoint = Vector2.new(0, 1) glowWave.BackgroundColor3 = COLOR_ON glowWave.BackgroundTransparency = 0.5 glowWave.BorderSizePixel = 0 glowWave.ZIndex = 12 glowWave.Parent = mainFrame local function playActivationGlow(isEnabling) pcall(function() glowWave.BackgroundColor3 = isEnabling and COLOR_ON or COLOR_RED glowWave.Size = UDim2.new(1, 0, 0, 0) glowWave.BackgroundTransparency = 0.4 local t1 = TweenService:Create(glowWave, TweenInfo.new(0.18, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), { Size = UDim2.new(1, 0, 1, 0) }) t1:Play() t1.Completed:Connect(function() local t2 = TweenService:Create(glowWave, TweenInfo.new(0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.In), { BackgroundTransparency = 1 }) t2:Play() end) end) end local bottomAudioBars = {} local bottomBarData = { {speed = 1.8}, {speed = 2.8}, {speed = 2.2}, {speed = 3.6}, {speed = 2.4}, {speed = 3.1} } for i = 1, #bottomBarData do local bar = Instance.new("Frame") bar.Size = UDim2.new(0, 38, 0, 6) bar.Position = UDim2.new(0, (i - 1) * 42, 1, 0) bar.AnchorPoint = Vector2.new(0, 1) bar.BackgroundColor3 = Color3.fromRGB(130, 130, 130) bar.BackgroundTransparency = 0.35 bar.BorderSizePixel = 0 bar.ZIndex = 0 local gradient = Instance.new("UIGradient") gradient.Transparency = NumberSequence.new({ NumberSequenceKeypoint.new(0, 0.05), NumberSequenceKeypoint.new(1, 0.6) }) gradient.Rotation = 90 gradient.Parent = bar bar.Parent = mainFrame table.insert(bottomAudioBars, { frame = bar, speed = bottomBarData[i].speed, timer = math.random() * 10 }) end local musicHeaderFrame = Instance.new("Frame") musicHeaderFrame.Size = UDim2.new(1, 0, 0, 32) musicHeaderFrame.Position = UDim2.new(0, 0, 0, 35) musicHeaderFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25) musicHeaderFrame.BackgroundTransparency = 0.6 musicHeaderFrame.BorderSizePixel = 0 musicHeaderFrame.ZIndex = 4 musicHeaderFrame.Parent = mainFrame local musicStatusLabel = Instance.new("TextLabel") musicStatusLabel.Size = UDim2.new(1, 0, 0, 16) musicStatusLabel.Position = UDim2.new(0, 0, 0, 2) musicStatusLabel.BackgroundTransparency = 1 musicStatusLabel.Text = "🎵 Music: Paused" musicStatusLabel.TextColor3 = Color3.fromRGB(255, 255, 255) musicStatusLabel.Font = Enum.Font.SourceSansBold musicStatusLabel.TextSize = 12 musicStatusLabel.ZIndex = 5 musicStatusLabel.Parent = musicHeaderFrame local topAudioBars = {} local topBarContainer = Instance.new("Frame") topBarContainer.Size = UDim2.new(0, 200, 0, 10) topBarContainer.Position = UDim2.new(0.5, -100, 0, 19) topBarContainer.BackgroundTransparency = 1 topBarContainer.ZIndex = 5 topBarContainer.Parent = musicHeaderFrame for i = 1, 8 do local bar = Instance.new("Frame") bar.Size = UDim2.new(0, 20, 0, 3) bar.Position = UDim2.new(0, (i - 1) * 25, 1, 0) bar.AnchorPoint = Vector2.new(0, 1) bar.BackgroundColor3 = COLOR_ON bar.BackgroundTransparency = 0.2 bar.BorderSizePixel = 0 bar.ZIndex = 5 bar.Parent = topBarContainer table.insert(topAudioBars, { frame = bar, speed = 2.0 + (i * 0.3), timer = math.random() * 10 }) end local openBtn = Instance.new("TextButton") openBtn.Size = UDim2.new(0, 45, 0, 45) openBtn.Position = UDim2.new(0, 20, 0.5, -22) openBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 40) openBtn.BackgroundTransparency = 0.6 openBtn.BorderColor3 = Color3.fromRGB(255, 255, 255) openBtn.BorderSizePixel = 2 openBtn.Text = "KM" openBtn.TextColor3 = Color3.fromRGB(255, 255, 255) openBtn.Font = Enum.Font.SourceSansBold openBtn.TextSize = 16 openBtn.Active = true openBtn.Draggable = true openBtn.Visible = false openBtn.Parent = screenGui applyClickSound(openBtn) local topBar = Instance.new("Frame") topBar.Size = UDim2.new(1, 0, 0, 35) topBar.BackgroundTransparency = 1 topBar.ZIndex = 5 topBar.Parent = mainFrame local backBtn = Instance.new("TextButton") backBtn.Size = UDim2.new(0, 28, 0, 28) backBtn.Position = UDim2.new(0, 6, 0, 4) backBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 40) backBtn.BackgroundTransparency = 0.5 backBtn.BorderColor3 = Color3.fromRGB(255, 255, 255) backBtn.BorderSizePixel = 1 backBtn.Text = "<" backBtn.TextColor3 = Color3.fromRGB(255, 255, 255) backBtn.Font = Enum.Font.SourceSansBold backBtn.TextSize = 18 backBtn.ZIndex = 6 backBtn.Visible = false backBtn.Parent = topBar applyClickSound(backBtn) local titleLabel = Instance.new("TextLabel") titleLabel.Size = UDim2.new(1, -50, 1, 0) titleLabel.Position = UDim2.new(0, 10, 0, 0) titleLabel.BackgroundTransparency = 1 titleLabel.Text = "KM studio" titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255) titleLabel.Font = Enum.Font.SourceSansBold titleLabel.TextSize = 18 titleLabel.TextXAlignment = Enum.TextXAlignment.Left titleLabel.ZIndex = 6 titleLabel.Parent = topBar local fpsPingLabel = Instance.new("TextLabel") fpsPingLabel.Size = UDim2.new(0, 100, 1, 0) fpsPingLabel.Position = UDim2.new(1, -135, 0, 0) fpsPingLabel.BackgroundTransparency = 1 fpsPingLabel.Text = "FPS: 60 | Ping: 0ms" fpsPingLabel.TextColor3 = Color3.fromRGB(0, 255, 100) fpsPingLabel.Font = Enum.Font.SourceSansBold fpsPingLabel.TextSize = 11 fpsPingLabel.TextXAlignment = Enum.TextXAlignment.Right fpsPingLabel.ZIndex = 7 fpsPingLabel.Parent = topBar local closeBtn = Instance.new("TextButton") closeBtn.Size = UDim2.new(0, 28, 0, 28) closeBtn.Position = UDim2.new(1, -34, 0, 4) closeBtn.BackgroundColor3 = Color3.fromRGB(255, 0, 0) closeBtn.BorderColor3 = Color3.fromRGB(255, 255, 255) closeBtn.BorderSizePixel = 1 closeBtn.Text = "X" closeBtn.TextColor3 = Color3.fromRGB(255, 255, 255) closeBtn.Font = Enum.Font.SourceSansBold closeBtn.TextSize = 16 closeBtn.ZIndex = 6 closeBtn.Parent = topBar closeBtn.MouseButton1Click:Connect(function() pcall(function() clickSound:Play() end) tvFlash.BackgroundTransparency = 0 TweenService:Create(tvFlash, TweenInfo.new(0.08), {BackgroundTransparency = 1}):Play() local shrinkTween = TweenService:Create(mainFrame, TweenInfo.new(0.2, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out), { Size = UDim2.new(0, 260, 0, 2), Position = UDim2.new(0.5, -130, 0.5, -1) }) shrinkTween:Play() shrinkTween.Completed:Connect(function() mainFrame.Visible = false mainFrame.Size = UDim2.new(0, 260, 0, 320) mainFrame.Position = UDim2.new(0.5, -130, 0.5, -160) openBtn.Visible = true end) end) openBtn.MouseButton1Click:Connect(function() pcall(function() clickSound:Play() end) openBtn.Visible = false mainFrame.Size = UDim2.new(0, 260, 0, 2) mainFrame.Position = UDim2.new(0.5, -130, 0.5, -1) mainFrame.Visible = true tvFlash.BackgroundTransparency = 0 TweenService:Create(tvFlash, TweenInfo.new(0.12), {BackgroundTransparency = 1}):Play() local expandTween = TweenService:Create(mainFrame, TweenInfo.new(0.25, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out), { Size = UDim2.new(0, 260, 0, 320), Position = UDim2.new(0.5, -130, 0.5, -160) }) expandTween:Play() end) local activeColorButtons = {} local cameraFill, spinFill, walkSpeedFill, jumpPowerFill local function updateThemeColor(newColor) COLOR_ON = newColor for _, btn in ipairs(activeColorButtons) do if btn and btn.Parent then btn.BackgroundColor3 = COLOR_ON end end for i = 1, #topAudioBars do topAudioBars[i].frame.BackgroundColor3 = COLOR_ON end if cameraFill then cameraFill.BackgroundColor3 = COLOR_ON end if spinFill then spinFill.BackgroundColor3 = COLOR_ON end if walkSpeedFill then walkSpeedFill.BackgroundColor3 = COLOR_ON end if jumpPowerFill then jumpPowerFill.BackgroundColor3 = COLOR_ON end end local scrollFrame = Instance.new("ScrollingFrame") scrollFrame.Size = UDim2.new(1, -10, 1, -75) scrollFrame.Position = UDim2.new(0, 5, 0, 70) scrollFrame.BackgroundTransparency = 1 scrollFrame.BorderSizePixel = 0 scrollFrame.CanvasSize = UDim2.new(0, 0, 0, 1050) scrollFrame.ScrollBarThickness = 4 scrollFrame.ZIndex = 2 scrollFrame.Parent = mainFrame local UIListLayout = Instance.new("UIListLayout") UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder UIListLayout.Padding = UDim.new(0, 8) UIListLayout.Parent = scrollFrame local scrollPage2 = Instance.new("ScrollingFrame") scrollPage2.Size = UDim2.new(1, -10, 1, -75) scrollPage2.Position = UDim2.new(0, 5, 0, 70) scrollPage2.BackgroundTransparency = 1 scrollPage2.BorderSizePixel = 0 scrollPage2.CanvasSize = UDim2.new(0, 0, 0, 1050) scrollPage2.ScrollBarThickness = 4 scrollPage2.ZIndex = 2 scrollPage2.Visible = false scrollPage2.Parent = mainFrame local UIListLayoutPage2 = Instance.new("UIListLayout") UIListLayoutPage2.SortOrder = Enum.SortOrder.LayoutOrder UIListLayoutPage2.Padding = UDim.new(0, 8) UIListLayoutPage2.Parent = scrollPage2 local scrollPage3 = Instance.new("ScrollingFrame") scrollPage3.Size = UDim2.new(1, -10, 1, -75) scrollPage3.Position = UDim2.new(0, 5, 0, 70) scrollPage3.BackgroundTransparency = 1 scrollPage3.BorderSizePixel = 0 scrollPage3.CanvasSize = UDim2.new(0, 0, 0, 600) scrollPage3.ScrollBarThickness = 4 scrollPage3.ZIndex = 2 scrollPage3.Visible = false scrollPage3.Parent = mainFrame local UIListLayoutPage3 = Instance.new("UIListLayout") UIListLayoutPage3.SortOrder = Enum.SortOrder.LayoutOrder UIListLayoutPage3.Padding = UDim.new(0, 8) UIListLayoutPage3.Parent = scrollPage3 local scrollUpdates = Instance.new("ScrollingFrame") scrollUpdates.Size = UDim2.new(1, -10, 1, -75) scrollUpdates.Position = UDim2.new(0, 5, 0, 70) scrollUpdates.BackgroundTransparency = 1 scrollUpdates.BorderSizePixel = 0 scrollUpdates.CanvasSize = UDim2.new(0, 0, 0, 320) scrollUpdates.ScrollBarThickness = 4 scrollUpdates.ZIndex = 2 scrollUpdates.Visible = false scrollUpdates.Parent = mainFrame local UIListLayoutUpdates = Instance.new("UIListLayout") UIListLayoutUpdates.SortOrder = Enum.SortOrder.LayoutOrder UIListLayoutUpdates.Padding = UDim.new(0, 8) UIListLayoutUpdates.Parent = scrollUpdates local function createOption(name, stateKey, layoutOrder, callback) local btn = Instance.new("TextButton") btn.Size = UDim2.new(1, 0, 0, 40) btn.BackgroundColor3 = COLOR_OFF btn.TextColor3 = Color3.fromRGB(255, 255, 255) btn.Font = Enum.Font.SourceSansBold btn.TextSize = 16 btn.ZIndex = 3 btn.Text = name .. ": OFF" btn.LayoutOrder = layoutOrder btn.Parent = scrollFrame applyClickSound(btn) btn.MouseButton1Click:Connect(function() states[stateKey] = not states[stateKey] if states[stateKey] then btn.BackgroundColor3 = COLOR_ON btn.Text = name .. ": ON" table.insert(activeColorButtons, btn) playActivationGlow(true) else btn.BackgroundColor3 = COLOR_OFF btn.Text = name .. ": OFF" playActivationGlow(false) end if callback then callback(states[stateKey]) end end) return btn end createOption("Fly Mode", "Fly", 1, function(enabled) local char = player.Character if not char or not char:FindFirstChild("HumanoidRootPart") then return end local hrp = char.HumanoidRootPart local hum = char:FindFirstChildOfClass("Humanoid") if enabled then hum.PlatformStand = true if flyBodyVelocity then flyBodyVelocity:Destroy() end if flyBodyGyro then flyBodyGyro:Destroy() end flyBodyVelocity = Instance.new("BodyVelocity") flyBodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge) flyBodyVelocity.Velocity = Vector3.new(0, 0, 0) flyBodyVelocity.Parent = hrp flyBodyGyro = Instance.new("BodyGyro") flyBodyGyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge) flyBodyGyro.CFrame = hrp.CFrame flyBodyGyro.Parent = hrp else hum.PlatformStand = false if flyBodyVelocity then flyBodyVelocity:Destroy() flyBodyVelocity = nil end if flyBodyGyro then flyBodyGyro:Destroy() flyBodyGyro = nil end end end) createOption("Infinite Jumps", "InfJump", 2, nil) createOption("FPS Unlocker", "FPSUnlocker", 3, function(enabled) if setfpscap then if enabled then setfpscap(999) else setfpscap(60) end end end) createOption("No Clip", "NoClip", 4, function(enabled) if not enabled and player.Character then for _, part in ipairs(player.Character:GetDescendants()) do if part:IsA("BasePart") then part.CanCollide = true end end end end) createOption("Invisible", "Invisible", 5, function(enabled) local char = player.Character if char then for _, part in ipairs(char:GetDescendants()) do if part:IsA("BasePart") or part:IsA("Decal") then part.Transparency = enabled and 1 or 0 end end end end) createOption("Anti-Kick", "AntiKick", 6, function(enabled) if enabled then pcall(function() local mt = getrawmetatable(game) setreadonly(mt, false) local old = mt.__namecall mt.__namecall = newcclosure(function(self, ...) local method = getnamecallmethod() if method == "Kick" and self == player and states.AntiKick then return end return old(self, ...) end) setreadonly(mt, true) end) end end) createOption("Anti-Ban", "AntiBan", 7, function(enabled) if enabled then pcall(function() local mt = getrawmetatable(game) setreadonly(mt, false) local old = mt.__namecall mt.__namecall = newcclosure(function(self, ...) local method = getnamecallmethod() if (method == "Ban" or method == "SaveServerList") and states.AntiBan then return end return old(self, ...) end) setreadonly(mt, true) end) end end) local espFolder = Instance.new("Folder") espFolder.Name = "KMEspFolder" espFolder.Parent = playerGui local function clearAllESP() for _, child in ipairs(espFolder:GetChildren()) do child:Destroy() end for _, p in ipairs(Players:GetPlayers()) do if p.Character then local hl = p.Character:FindFirstChild("KM_ESP_Highlight") if hl then hl:Destroy() end end end end createOption("ESP", "ESP", 8, function(enabled) if not enabled then clearAllESP() end end) createOption("X-Ray", "XRay", 9, function(enabled) for _, part in ipairs(Workspace:GetDescendants()) do if part:IsA("BasePart") and not part:IsDescendantOf(player.Character or workspace) then if enabled then if part.Transparency < 0.6 then part.LocalTransparencyModifier = 0.75 end else part.LocalTransparencyModifier = 0 end end end end) createOption("Custom Chat Tag", "CustomChatTag", 10, function(enabled) if enabled then pcall(function() if TextChatService.ChatVersion == Enum.ChatVersion.TextChatService then TextChatService.OnIncomingMessage = function(message) if message.TextSource and message.TextSource.UserId == player.UserId then local properties = Instance.new("TextChatMessageProperties") properties.PrefixText = "[KM STUDIO] " .. message.PrefixText return properties end end end end) else pcall(function() if TextChatService.ChatVersion == Enum.ChatVersion.TextChatService then TextChatService.OnIncomingMessage = nil end end) end end) local spamFrame = Instance.new("Frame") spamFrame.Size = UDim2.new(1, 0, 0, 45) spamFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50) spamFrame.BackgroundTransparency = 0.5 spamFrame.BorderSizePixel = 0 spamFrame.LayoutOrder = 11 spamFrame.ZIndex = 2 spamFrame.Parent = scrollFrame local spamBox = Instance.new("TextBox") spamBox.Size = UDim2.new(0, 110, 0, 30) spamBox.Position = UDim2.new(0, 5, 0, 7) spamBox.BackgroundColor3 = Color3.fromRGB(30, 30, 30) spamBox.TextColor3 = Color3.fromRGB(255, 255, 255) spamBox.BorderSizePixel = 0 spamBox.PlaceholderText = "Spam text..." spamBox.Text = "KM Studio On Top!" spamBox.Font = Enum.Font.SourceSansBold spamBox.TextSize = 13 spamBox.ZIndex = 3 spamBox.Parent = spamFrame spamBox.FocusLost:Connect(function() if spamBox.Text ~= "" then spamText = spamBox.Text end end) local spamBtn = Instance.new("TextButton") spamBtn.Size = UDim2.new(0, 120, 0, 30) spamBtn.Position = UDim2.new(0, 120, 0, 7) spamBtn.BackgroundColor3 = COLOR_OFF spamBtn.TextColor3 = Color3.fromRGB(255, 255, 255) spamBtn.Font = Enum.Font.SourceSansBold spamBtn.TextSize = 13 spamBtn.ZIndex = 3 spamBtn.Text = "Chat Spam: OFF" spamBtn.Parent = spamFrame applyClickSound(spamBtn) spamBtn.MouseButton1Click:Connect(function() states.ChatSpammer = not states.ChatSpammer if states.ChatSpammer then spamBtn.BackgroundColor3 = COLOR_ON spamBtn.Text = "Chat Spam: ON" table.insert(activeColorButtons, spamBtn) playActivationGlow(true) else spamBtn.BackgroundColor3 = COLOR_OFF spamBtn.Text = "Chat Spam: OFF" playActivationGlow(false) end end) createOption("Godmode", "Godmode", 12, function(enabled) if not enabled and player.Character and player.Character:FindFirstChildOfClass("Humanoid") then player.Character:FindFirstChildOfClass("Humanoid").MaxHealth = 100 end end) createOption("Walk on Water", "WalkOnWater", 13, function(enabled) if not enabled and waterPlatform and waterPlatform.Parent then waterPlatform:Destroy() waterPlatform = nil end end) createOption("Anti-Ragdoll", "AntiRagdoll", 14, nil) local cameraFrame = Instance.new("Frame") cameraFrame.Size = UDim2.new(1, 0, 0, 40) cameraFrame.BackgroundColor3 = COLOR_OFF cameraFrame.BackgroundTransparency = 0.3 cameraFrame.BorderSizePixel = 0 cameraFrame.LayoutOrder = 15 cameraFrame.ZIndex = 2 cameraFrame.ClipsDescendants = true cameraFrame.Parent = scrollFrame cameraFill = Instance.new("Frame") cameraFill.Size = UDim2.new(0.44, 0, 1, 0) cameraFill.BackgroundColor3 = COLOR_ON cameraFill.BackgroundTransparency = 0.4 cameraFill.BorderSizePixel = 0 cameraFill.ZIndex = 2 cameraFill.Parent = cameraFrame local cameraLabel = Instance.new("TextLabel") cameraLabel.Size = UDim2.new(1, 0, 1, 0) cameraLabel.BackgroundTransparency = 1 cameraLabel.Text = "Camera: 70 (58%)" cameraLabel.TextColor3 = Color3.fromRGB(255, 255, 255) cameraLabel.Font = Enum.Font.SourceSansBold cameraLabel.TextSize = 16 cameraLabel.ZIndex = 3 cameraLabel.Parent = cameraFrame local draggingFOV = false cameraFrame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then draggingFOV = true end end) createOption("Anti-AFK", "AntiAFK", 16, function(enabled) if enabled then player.Idled:Connect(function() if not states.AntiAFK then return end VirtualUser:CaptureController() VirtualUser:ClickButton2(Vector2.new()) end) end end) local customUiFrame = Instance.new("Frame") customUiFrame.Size = UDim2.new(1, 0, 0, 40) customUiFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50) customUiFrame.BackgroundTransparency = 0.5 customUiFrame.BorderSizePixel = 0 customUiFrame.LayoutOrder = 17 customUiFrame.ZIndex = 2 customUiFrame.Parent = scrollFrame local customUiLabel = Instance.new("TextLabel") customUiLabel.Size = UDim2.new(0, 110, 1, 0) customUiLabel.Position = UDim2.new(0, 5, 0, 0) customUiLabel.BackgroundTransparency = 1 customUiLabel.Text = "Theme Color" customUiLabel.TextColor3 = Color3.fromRGB(255, 255, 255) customUiLabel.Font = Enum.Font.SourceSansBold customUiLabel.TextSize = 14 customUiLabel.TextXAlignment = Enum.TextXAlignment.Left customUiLabel.ZIndex = 3 customUiLabel.Parent = customUiFrame local themes = { {name = "Blue", color = Color3.fromRGB(0, 120, 255)}, {name = "Purple", color = Color3.fromRGB(150, 0, 255)}, {name = "Red", color = Color3.fromRGB(255, 0, 0)}, {name = "Green", color = Color3.fromRGB(0, 200, 0)} } local currentThemeIndex = 1 local themeBtn = Instance.new("TextButton") themeBtn.Size = UDim2.new(0, 110, 0, 30) themeBtn.Position = UDim2.new(0, 120, 0, 5) themeBtn.BackgroundColor3 = themes[1].color themeBtn.TextColor3 = Color3.fromRGB(255, 255, 255) themeBtn.Font = Enum.Font.SourceSansBold themeBtn.TextSize = 14 themeBtn.ZIndex = 3 themeBtn.Text = themes[1].name themeBtn.Parent = customUiFrame applyClickSound(themeBtn) themeBtn.MouseButton1Click:Connect(function() currentThemeIndex = currentThemeIndex + 1 if currentThemeIndex > #themes then currentThemeIndex = 1 end local t = themes[currentThemeIndex] themeBtn.BackgroundColor3 = t.color themeBtn.Text = t.name updateThemeColor(t.color) playActivationGlow(true) end) local page2ToggleBtn = Instance.new("TextButton") page2ToggleBtn.Size = UDim2.new(1, 0, 0, 40) page2ToggleBtn.BackgroundColor3 = COLOR_OFF page2ToggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255) page2ToggleBtn.Font = Enum.Font.SourceSansBold page2ToggleBtn.TextSize = 16 page2ToggleBtn.ZIndex = 3 page2ToggleBtn.Text = "Page 2: OFF" page2ToggleBtn.LayoutOrder = 18 page2ToggleBtn.Parent = scrollFrame applyClickSound(page2ToggleBtn) page2ToggleBtn.MouseButton1Click:Connect(function() states.Page2 = not states.Page2 if states.Page2 then page2ToggleBtn.BackgroundColor3 = COLOR_ON table.insert(activeColorButtons, page2ToggleBtn) page2ToggleBtn.Text = "Page 2: ON" playActivationGlow(true) scrollFrame.Visible = false scrollPage3.Visible = false scrollPage2.Visible = true titleLabel.Text = "KM studio - Page 2" titleLabel.Position = UDim2.new(0, 40, 0, 0) backBtn.Visible = true else page2ToggleBtn.BackgroundColor3 = COLOR_OFF page2ToggleBtn.Text = "Page 2: OFF" playActivationGlow(false) end end) backBtn.MouseButton1Click:Connect(function() playActivationGlow(true) if scrollUpdates.Visible then scrollUpdates.Visible = false if states.Page2 then scrollPage2.Visible = true titleLabel.Text = "KM studio - Page 2" elseif states.Page3 then scrollPage3.Visible = true titleLabel.Text = "KM studio - Page 3" else scrollFrame.Visible = true titleLabel.Text = "KM studio" backBtn.Visible = false end else states.Page2 = false states.Page3 = false page2ToggleBtn.BackgroundColor3 = COLOR_OFF page2ToggleBtn.Text = "Page 2: OFF" scrollPage2.Visible = false scrollPage3.Visible = false scrollFrame.Visible = true titleLabel.Text = "KM studio" titleLabel.Position = UDim2.new(0, 10, 0, 0) backBtn.Visible = false end end) local function createPage2Option(name, stateKey, layoutOrder, callback) local btn = Instance.new("TextButton") btn.Size = UDim2.new(1, 0, 0, 40) btn.BackgroundColor3 = COLOR_OFF btn.TextColor3 = Color3.fromRGB(255, 255, 255) btn.Font = Enum.Font.SourceSansBold btn.TextSize = 16 btn.ZIndex = 3 btn.Text = name .. ": OFF" btn.LayoutOrder = layoutOrder btn.Parent = scrollPage2 applyClickSound(btn) btn.MouseButton1Click:Connect(function() states[stateKey] = not states[stateKey] if states[stateKey] then btn.BackgroundColor3 = COLOR_ON btn.Text = name .. ": ON" table.insert(activeColorButtons, btn) playActivationGlow(true) else btn.BackgroundColor3 = COLOR_OFF btn.Text = name .. ": OFF" playActivationGlow(false) end if callback then callback(states[stateKey]) end end) return btn end createPage2Option("Rainbow Map", "RainbowMap", 1, nil) createPage2Option("Fullbright", "Fullbright", 2, function(enabled) if enabled then Lighting.Brightness = 2 Lighting.ClockTime = 14 Lighting.GlobalShadows = false Lighting.Ambient = Color3.fromRGB(255, 255, 255) Lighting.OutdoorAmbient = Color3.fromRGB(255, 255, 255) else Lighting.Brightness = originalBrightness Lighting.ClockTime = originalClockTime Lighting.GlobalShadows = originalGlobalShadows Lighting.Ambient = originalAmbient Lighting.OutdoorAmbient = originalOutdoorAmbient end end) createPage2Option("No Lag", "NoLag", 3, function(enabled) if enabled then Lighting.GlobalShadows = false for _, v in ipairs(Workspace:GetDescendants()) do if v:IsA("BasePart") then v.CastShadow = false end end else Lighting.GlobalShadows = originalGlobalShadows for _, v in ipairs(Workspace:GetDescendants()) do if v:IsA("BasePart") then v.CastShadow = true end end end end) createPage2Option("Hitbox Expander", "HitboxExpander", 4, nil) createPage2Option("Night Vision", "NightVision", 5, function(enabled) if enabled then Lighting.Ambient = Color3.fromRGB(150, 150, 150) else Lighting.Ambient = originalAmbient end end) createPage2Option("Touch Fling", "TouchFling", 6, nil) createPage2Option("CFrame Walk", "CFrameWalk", 7, nil) createPage2Option("Anti-Cheat V3", "AntiCheatV3", 8, nil) createPage2Option("Swim Air", "SwimAir", 9, function(enabled) local char = player.Character if char and char:FindFirstChildOfClass("Humanoid") then local hum = char:FindFirstChildOfClass("Humanoid") if enabled then hum:SetStateEnabled(Enum.HumanoidStateType.Swimming, true) hum:ChangeState(Enum.HumanoidStateType.Swimming) else hum:ChangeState(Enum.HumanoidStateType.GettingUp) end end end) createPage2Option("Fake Lag", "FakeLag", 10, nil) local walkSpeedFrame = Instance.new("Frame") walkSpeedFrame.Size = UDim2.new(1, 0, 0, 40) walkSpeedFrame.BackgroundColor3 = COLOR_OFF walkSpeedFrame.BackgroundTransparency = 0.3 walkSpeedFrame.BorderSizePixel = 0 walkSpeedFrame.LayoutOrder = 11 walkSpeedFrame.ZIndex = 2 walkSpeedFrame.ClipsDescendants = true walkSpeedFrame.Parent = scrollPage2 walkSpeedFill = Instance.new("Frame") walkSpeedFill.Size = UDim2.new(0, 0, 1, 0) walkSpeedFill.BackgroundColor3 = COLOR_ON walkSpeedFill.BackgroundTransparency = 0.4 walkSpeedFill.BorderSizePixel = 0 walkSpeedFill.ZIndex = 2 walkSpeedFill.Parent = walkSpeedFrame local walkSpeedLabel = Instance.new("TextLabel") walkSpeedLabel.Size = UDim2.new(1, 0, 1, 0) walkSpeedLabel.BackgroundTransparency = 1 walkSpeedLabel.Text = "WalkSpeed: 16 (0%)" walkSpeedLabel.TextColor3 = Color3.fromRGB(255, 255, 255) walkSpeedLabel.Font = Enum.Font.SourceSansBold walkSpeedLabel.TextSize = 16 walkSpeedLabel.ZIndex = 3 walkSpeedLabel.Parent = walkSpeedFrame local draggingWalkSpeed = false walkSpeedFrame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then draggingWalkSpeed = true end end) local jumpPowerFrame = Instance.new("Frame") jumpPowerFrame.Size = UDim2.new(1, 0, 0, 40) jumpPowerFrame.BackgroundColor3 = COLOR_OFF jumpPowerFrame.BackgroundTransparency = 0.3 jumpPowerFrame.BorderSizePixel = 0 jumpPowerFrame.LayoutOrder = 12 jumpPowerFrame.ZIndex = 2 jumpPowerFrame.ClipsDescendants = true jumpPowerFrame.Parent = scrollPage2 jumpPowerFill = Instance.new("Frame") jumpPowerFill.Size = UDim2.new(0, 0, 1, 0) jumpPowerFill.BackgroundColor3 = COLOR_ON jumpPowerFill.BackgroundTransparency = 0.4 jumpPowerFill.BorderSizePixel = 0 jumpPowerFill.ZIndex = 2 jumpPowerFill.Parent = jumpPowerFrame local jumpPowerLabel = Instance.new("TextLabel") jumpPowerLabel.Size = UDim2.new(1, 0, 1, 0) jumpPowerLabel.BackgroundTransparency = 1 jumpPowerLabel.Text = "JumpPower: 50 (0%)" jumpPowerLabel.TextColor3 = Color3.fromRGB(255, 255, 255) jumpPowerLabel.Font = Enum.Font.SourceSansBold jumpPowerLabel.TextSize = 16 jumpPowerLabel.ZIndex = 3 jumpPowerLabel.Parent = jumpPowerFrame local draggingJumpPower = false jumpPowerFrame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then draggingJumpPower = true end end) local soundSpamFrame = Instance.new("Frame") soundSpamFrame.Size = UDim2.new(1, 0, 0, 85) soundSpamFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50) soundSpamFrame.BackgroundTransparency = 0.5 soundSpamFrame.BorderSizePixel = 0 soundSpamFrame.LayoutOrder = 13 soundSpamFrame.ZIndex = 2 soundSpamFrame.Parent = scrollPage2 local selectSoundBtn = Instance.new("TextButton") selectSoundBtn.Size = UDim2.new(0, 110, 0, 30) selectSoundBtn.Position = UDim2.new(0, 5, 0, 8) selectSoundBtn.BackgroundColor3 = COLOR_OFF selectSoundBtn.TextColor3 = Color3.fromRGB(255, 255, 255) selectSoundBtn.Font = Enum.Font.SourceSansBold selectSoundBtn.TextSize = 11 selectSoundBtn.ZIndex = 3 selectSoundBtn.Text = "Track: " .. playlist[1].name selectSoundBtn.Parent = soundSpamFrame applyClickSound(selectSoundBtn) local soundSpamBtn = Instance.new("TextButton") soundSpamBtn.Size = UDim2.new(0, 110, 0, 30) soundSpamBtn.Position = UDim2.new(0, 120, 0, 8) soundSpamBtn.BackgroundColor3 = COLOR_OFF soundSpamBtn.TextColor3 = Color3.fromRGB(255, 255, 255) soundSpamBtn.Font = Enum.Font.SourceSansBold soundSpamBtn.TextSize = 12 soundSpamBtn.ZIndex = 3 soundSpamBtn.Text = "Sound Spam: OFF" soundSpamBtn.Parent = soundSpamFrame applyClickSound(soundSpamBtn) local selectedSpamIndex = 1 selectSoundBtn.MouseButton1Click:Connect(function() selectedSpamIndex = selectedSpamIndex + 1 if selectedSpamIndex > #playlist then selectedSpamIndex = 1 end local song = playlist[selectedSpamIndex] selectSoundBtn.Text = "Track: " .. song.name playActivationGlow(true) end) soundSpamBtn.MouseButton1Click:Connect(function() states.SoundSpammer = not states.SoundSpammer if states.SoundSpammer then soundSpamBtn.BackgroundColor3 = COLOR_ON table.insert(activeColorButtons, soundSpamBtn) soundSpamBtn.Text = "Sound Spam: ON" playActivationGlow(true) else soundSpamBtn.BackgroundColor3 = COLOR_OFF soundSpamBtn.Text = "Sound Spam: OFF" playActivationGlow(false) end end) local spinFrame = Instance.new("Frame") spinFrame.Size = UDim2.new(1, 0, 0, 40) spinFrame.BackgroundColor3 = COLOR_OFF spinFrame.BackgroundTransparency = 0.3 spinFrame.BorderSizePixel = 0 spinFrame.LayoutOrder = 14 spinFrame.ZIndex = 2 spinFrame.ClipsDescendants = true spinFrame.Parent = scrollPage2 spinFill = Instance.new("Frame") spinFill.Size = UDim2.new(0, 0, 1, 0) spinFill.BackgroundColor3 = COLOR_ON spinFill.BackgroundTransparency = 0.4 spinFill.BorderSizePixel = 0 spinFill.ZIndex = 2 spinFill.Parent = spinFrame local spinLabel = Instance.new("TextLabel") spinLabel.Size = UDim2.new(1, 0, 1, 0) spinLabel.BackgroundTransparency = 1 spinLabel.Text = "SpinBot: 0 (0%)" spinLabel.TextColor3 = Color3.fromRGB(255, 255, 255) spinLabel.Font = Enum.Font.SourceSansBold spinLabel.TextSize = 16 spinLabel.ZIndex = 3 spinLabel.Parent = spinFrame local draggingSpin = false spinFrame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then draggingSpin = true end end) local tpFrame = Instance.new("Frame") tpFrame.Size = UDim2.new(1, 0, 0, 40) tpFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50) tpFrame.BackgroundTransparency = 0.5 tpFrame.BorderSizePixel = 0 tpFrame.LayoutOrder = 15 tpFrame.ZIndex = 2 tpFrame.Parent = scrollPage2 local saveTpBtn = Instance.new("TextButton") saveTpBtn.Size = UDim2.new(0, 110, 0, 30) saveTpBtn.Position = UDim2.new(0, 5, 0, 5) saveTpBtn.BackgroundColor3 = COLOR_OFF saveTpBtn.TextColor3 = Color3.fromRGB(255, 255, 255) saveTpBtn.Font = Enum.Font.SourceSansBold saveTpBtn.TextSize = 14 saveTpBtn.ZIndex = 3 saveTpBtn.Text = "Save Pos" saveTpBtn.Parent = tpFrame applyClickSound(saveTpBtn) local goTpBtn = Instance.new("TextButton") goTpBtn.Size = UDim2.new(0, 110, 0, 30) goTpBtn.Position = UDim2.new(0, 120, 0, 5) goTpBtn.BackgroundColor3 = COLOR_OFF goTpBtn.TextColor3 = Color3.fromRGB(255, 255, 255) goTpBtn.Font = Enum.Font.SourceSansBold goTpBtn.TextSize = 14 goTpBtn.ZIndex = 3 goTpBtn.Text = "Teleport" goTpBtn.Parent = tpFrame applyClickSound(goTpBtn) saveTpBtn.MouseButton1Click:Connect(function() if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then savedCFrame = player.Character.HumanoidRootPart.CFrame saveTpBtn.BackgroundColor3 = COLOR_ON playActivationGlow(true) task.delay(0.5, function() if saveTpBtn.Parent then saveTpBtn.BackgroundColor3 = COLOR_OFF end end) end end) goTpBtn.MouseButton1Click:Connect(function() if savedCFrame and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then player.Character.HumanoidRootPart.CFrame = savedCFrame goTpBtn.BackgroundColor3 = COLOR_ON playActivationGlow(true) task.delay(0.5, function() if goTpBtn.Parent then goTpBtn.BackgroundColor3 = COLOR_OFF end end) end end) local musicFrame = Instance.new("Frame") musicFrame.Size = UDim2.new(1, 0, 0, 120) musicFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50) musicFrame.BackgroundTransparency = 0.5 musicFrame.BorderSizePixel = 0 musicFrame.LayoutOrder = 16 musicFrame.ZIndex = 2 musicFrame.Parent = scrollPage2 local musicBox = Instance.new("TextBox") musicBox.Size = UDim2.new(0, 140, 0, 30) musicBox.Position = UDim2.new(0, 5, 0, 5) musicBox.BackgroundColor3 = Color3.fromRGB(30, 30, 30) musicBox.TextColor3 = Color3.fromRGB(255, 255, 255) musicBox.BorderSizePixel = 0 musicBox.PlaceholderText = "Music ID..." musicBox.Text = tostring(playlist[1].id) musicBox.Font = Enum.Font.SourceSansBold musicBox.TextSize = 14 musicBox.ZIndex = 3 musicBox.Parent = musicFrame local musicBtn = Instance.new("TextButton") musicBtn.Size = UDim2.new(0, 90, 0, 30) musicBtn.Position = UDim2.new(0, 150, 0, 5) musicBtn.BackgroundColor3 = COLOR_OFF musicBtn.TextColor3 = Color3.fromRGB(255, 255, 255) musicBtn.Font = Enum.Font.SourceSansBold musicBtn.TextSize = 14 musicBtn.ZIndex = 3 musicBtn.Text = "Play Music" musicBtn.Parent = musicFrame applyClickSound(musicBtn) local volBox = Instance.new("TextBox") volBox.Size = UDim2.new(0, 235, 0, 30) volBox.Position = UDim2.new(0, 5, 0, 42) volBox.BackgroundColor3 = Color3.fromRGB(30, 30, 30) volBox.TextColor3 = Color3.fromRGB(255, 255, 255) volBox.BorderSizePixel = 0 volBox.PlaceholderText = "Volume (0.1 - 3)" volBox.Text = "1" volBox.Font = Enum.Font.SourceSansBold volBox.TextSize = 14 volBox.ZIndex = 3 volBox.Parent = musicFrame local nextMusicBtn = Instance.new("TextButton") nextMusicBtn.Size = UDim2.new(0, 235, 0, 30) nextMusicBtn.Position = UDim2.new(0, 5, 0, 78) nextMusicBtn.BackgroundColor3 = COLOR_OFF nextMusicBtn.TextColor3 = Color3.fromRGB(255, 255, 255) nextMusicBtn.Font = Enum.Font.SourceSansBold nextMusicBtn.TextSize = 14 nextMusicBtn.ZIndex = 3 nextMusicBtn.Text = "Next Music" nextMusicBtn.Parent = musicFrame applyClickSound(nextMusicBtn) local customSound = nil local savedMusicTime = 0 local currentSongTitle = playlist[1].name local function getSongNameById(id) for _, item in ipairs(playlist) do if item.id == id then return item.name end end return "Custom Track (" .. id .. ")" end local function playSelectedSound(soundId, songName) if not customSound or not customSound.Parent then if customSound then customSound:Destroy() end customSound = Instance.new("Sound") customSound.Name = "CustomMusicPlayer" customSound.Looped = true customSound.Parent = SoundService end local fullAssetId = "rbxassetid://" .. soundId customSound.Volume = math.clamp(musicVolumeValue, 0.05, 10) currentSongTitle = songName if customSound.SoundId ~= fullAssetId then savedMusicTime = 0 customSound.SoundId = fullAssetId customSound.TimePosition = 0 customSound:Play() else customSound.TimePosition = savedMusicTime customSound:Play() end musicStatusLabel.Text = "🎵 Playing: " .. currentSongTitle end musicBtn.MouseButton1Click:Connect(function() states.Music = not states.Music if states.Music then musicBtn.BackgroundColor3 = COLOR_ON table.insert(activeColorButtons, musicBtn) musicBtn.Text = "Stop Music" playActivationGlow(true) local soundId = tonumber(musicBox.Text) or playlist[1].id musicVolumeValue = tonumber(volBox.Text) or 1 playSelectedSound(soundId, getSongNameById(soundId)) else musicBtn.BackgroundColor3 = COLOR_OFF musicBtn.Text = "Play Music" playActivationGlow(false) if customSound then savedMusicTime = customSound.TimePosition customSound:Pause() end musicStatusLabel.Text = "🎵 Music: Paused" end end) nextMusicBtn.MouseButton1Click:Connect(function() currentPlaylistIndex = currentPlaylistIndex + 1 if currentPlaylistIndex > #playlist then currentPlaylistIndex = 1 end local currentSong = playlist[currentPlaylistIndex] musicBox.Text = tostring(currentSong.id) savedMusicTime = 0 playActivationGlow(true) if states.Music then playSelectedSound(currentSong.id, currentSong.name) else currentSongTitle = currentSong.name if customSound then customSound:Stop() customSound.SoundId = "rbxassetid://" .. currentSong.id customSound.TimePosition = 0 end end end) volBox.FocusLost:Connect(function() musicVolumeValue = tonumber(volBox.Text) or 1 if customSound then customSound.Volume = math.clamp(musicVolumeValue, 0.05, 10) end end) createPage2Option("Rainbow Skin", "RainbowSkin", 17, nil) createPage2Option("Fling All", "FlingAll", 18, function(enabled) if not enabled and savedCFrame and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then player.Character.HumanoidRootPart.CFrame = savedCFrame savedCFrame = nil end end) local page3ToggleBtn = Instance.new("TextButton") page3ToggleBtn.Size = UDim2.new(1, 0, 0, 40) page3ToggleBtn.BackgroundColor3 = COLOR_OFF page3ToggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255) page3ToggleBtn.Font = Enum.Font.SourceSansBold page3ToggleBtn.TextSize = 16 page3ToggleBtn.ZIndex = 3 page3ToggleBtn.Text = "Page 3 (Crosshair Menu)" page3ToggleBtn.LayoutOrder = 19 page3ToggleBtn.Parent = scrollPage2 applyClickSound(page3ToggleBtn) page3ToggleBtn.MouseButton1Click:Connect(function() states.Page3 = true scrollPage2.Visible = false scrollPage3.Visible = true titleLabel.Text = "KM studio - Page 3" titleLabel.Position = UDim2.new(0, 40, 0, 0) backBtn.Visible = true playActivationGlow(true) end) local crosshairGui = Instance.new("ScreenGui") crosshairGui.Name = "KMCrosshairGui" crosshairGui.ResetOnSpawn = false crosshairGui.Enabled = false crosshairGui.Parent = playerGui local crosshairCenter = Instance.new("Frame") crosshairCenter.Size = UDim2.new(0, 0, 0, 0) crosshairCenter.Position = UDim2.new(0.5, 0, 0.5, 0) crosshairCenter.BackgroundTransparency = 1 crosshairCenter.Parent = crosshairGui local function updateCrosshairLines() for _, child in ipairs(crosshairCenter:GetChildren()) do child:Destroy() end local col = crosshairColors[crosshairColorIndex] local t = crosshairThickness local s = crosshairSize local g = crosshairGap local top = Instance.new("Frame") top.Size = UDim2.new(0, t, 0, s) top.Position = UDim2.new(0, -math.floor(t/2), 0, -s - g) top.BackgroundColor3 = col top.BorderSizePixel = 0 top.Parent = crosshairCenter local bottom = Instance.new("Frame") bottom.Size = UDim2.new(0, t, 0, s) bottom.Position = UDim2.new(0, -math.floor(t/2), 0, g) bottom.BackgroundColor3 = col bottom.BorderSizePixel = 0 bottom.Parent = crosshairCenter local left = Instance.new("Frame") left.Size = UDim2.new(0, s, 0, t) left.Position = UDim2.new(0, -s - g, 0, -math.floor(t/2)) left.BackgroundColor3 = col left.BorderSizePixel = 0 left.Parent = crosshairCenter local right = Instance.new("Frame") right.Size = UDim2.new(0, s, 0, t) right.Position = UDim2.new(0, g, 0, -math.floor(t/2)) right.BackgroundColor3 = col right.BorderSizePixel = 0 right.Parent = crosshairCenter if states.CrosshairDot then local dot = Instance.new("Frame") dot.Size = UDim2.new(0, t + 1, 0, t + 1) dot.Position = UDim2.new(0, -math.floor((t+1)/2), 0, -math.floor((t+1)/2)) dot.BackgroundColor3 = col dot.BorderSizePixel = 0 dot.Parent = crosshairCenter end end updateCrosshairLines() local crosshairToggleBtn = Instance.new("TextButton") crosshairToggleBtn.Size = UDim2.new(1, 0, 0, 40) crosshairToggleBtn.BackgroundColor3 = COLOR_OFF crosshairToggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255) crosshairToggleBtn.Font = Enum.Font.SourceSansBold crosshairToggleBtn.TextSize = 16 crosshairToggleBtn.ZIndex = 3 crosshairToggleBtn.Text = "Custom Crosshair: OFF" crosshairToggleBtn.LayoutOrder = 1 crosshairToggleBtn.Parent = scrollPage3 applyClickSound(crosshairToggleBtn) crosshairToggleBtn.MouseButton1Click:Connect(function() states.CustomCrosshair = not states.CustomCrosshair crosshairGui.Enabled = states.CustomCrosshair if states.CustomCrosshair then crosshairToggleBtn.BackgroundColor3 = COLOR_ON crosshairToggleBtn.Text = "Custom Crosshair: ON" table.insert(activeColorButtons, crosshairToggleBtn) playActivationGlow(true) else crosshairToggleBtn.BackgroundColor3 = COLOR_OFF crosshairToggleBtn.Text = "Custom Crosshair: OFF" playActivationGlow(false) end end) local colorNames = {"Green", "Red", "Blue", "Yellow", "White"} local colorBtn = Instance.new("TextButton") colorBtn.Size = UDim2.new(1, 0, 0, 40) colorBtn.BackgroundColor3 = COLOR_OFF colorBtn.TextColor3 = Color3.fromRGB(255, 255, 255) colorBtn.Font = Enum.Font.SourceSansBold colorBtn.TextSize = 16 colorBtn.ZIndex = 3 colorBtn.Text = "Color: " .. colorNames[1] colorBtn.LayoutOrder = 2 colorBtn.Parent = scrollPage3 applyClickSound(colorBtn) colorBtn.MouseButton1Click:Connect(function() crosshairColorIndex = crosshairColorIndex + 1 if crosshairColorIndex > #crosshairColors then crosshairColorIndex = 1 end colorBtn.Text = "Color: " .. colorNames[crosshairColorIndex] updateCrosshairLines() playActivationGlow(true) end) local sizeBtn = Instance.new("TextButton") sizeBtn.Size = UDim2.new(1, 0, 0, 40) sizeBtn.BackgroundColor3 = COLOR_OFF sizeBtn.TextColor3 = Color3.fromRGB(255, 255, 255) sizeBtn.Font = Enum.Font.SourceSansBold sizeBtn.TextSize = 16 sizeBtn.ZIndex = 3 sizeBtn.Text = "Size: Medium" sizeBtn.LayoutOrder = 3 sizeBtn.Parent = scrollPage3 applyClickSound(sizeBtn) local sizes = { {name = "Small", size = 8, gap = 2}, {name = "Medium", size = 12, gap = 4}, {name = "Large", size = 18, gap = 6} } local currentSizeIndex = 2 sizeBtn.MouseButton1Click:Connect(function() currentSizeIndex = currentSizeIndex + 1 if currentSizeIndex > #sizes then currentSizeIndex = 1 end local s = sizes[currentSizeIndex] crosshairSize = s.size crosshairGap = s.gap sizeBtn.Text = "Size: " .. s.name updateCrosshairLines() playActivationGlow(true) end) local thicknessBtn = Instance.new("TextButton") thicknessBtn.Size = UDim2.new(1, 0, 0, 40) thicknessBtn.BackgroundColor3 = COLOR_OFF thicknessBtn.TextColor3 = Color3.fromRGB(255, 255, 255) thicknessBtn.Font = Enum.Font.SourceSansBold thicknessBtn.TextSize = 16 thicknessBtn.ZIndex = 3 thicknessBtn.Text = "Thickness: Normal" thicknessBtn.LayoutOrder = 4 thicknessBtn.Parent = scrollPage3 applyClickSound(thicknessBtn) local thicknesses = { {name = "Thin", val = 1}, {name = "Normal", val = 2}, {name = "Thick", val = 4} } local currentThicknessIndex = 2 thicknessBtn.MouseButton1Click:Connect(function() currentThicknessIndex = currentThicknessIndex + 1 if currentThicknessIndex > #thicknesses then currentThicknessIndex = 1 end local t = thicknesses[currentThicknessIndex] crosshairThickness = t.val thicknessBtn.Text = "Thickness: " .. t.name updateCrosshairLines() playActivationGlow(true) end) local dotBtn = Instance.new("TextButton") dotBtn.Size = UDim2.new(1, 0, 0, 40) dotBtn.BackgroundColor3 = COLOR_OFF dotBtn.TextColor3 = Color3.fromRGB(255, 255, 255) dotBtn.Font = Enum.Font.SourceSansBold dotBtn.TextSize = 16 dotBtn.ZIndex = 3 dotBtn.Text = "Center Dot: OFF" dotBtn.LayoutOrder = 5 dotBtn.Parent = scrollPage3 applyClickSound(dotBtn) dotBtn.MouseButton1Click:Connect(function() states.CrosshairDot = not states.CrosshairDot if states.CrosshairDot then dotBtn.BackgroundColor3 = COLOR_ON dotBtn.Text = "Center Dot: ON" table.insert(activeColorButtons, dotBtn) playActivationGlow(true) else dotBtn.BackgroundColor3 = COLOR_OFF dotBtn.Text = "Center Dot: OFF" playActivationGlow(false) end updateCrosshairLines() end) local updatesToggleBtn = Instance.new("TextButton") updatesToggleBtn.Size = UDim2.new(1, 0, 0, 40) updatesToggleBtn.BackgroundColor3 = Color3.fromRGB(0, 200, 0) updatesToggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255) updatesToggleBtn.Font = Enum.Font.SourceSansBold updatesToggleBtn.TextSize = 16 updatesToggleBtn.ZIndex = 3 updatesToggleBtn.Text = "Updates Menu" updatesToggleBtn.LayoutOrder = 20 updatesToggleBtn.Parent = scrollPage2 applyClickSound(updatesToggleBtn) updatesToggleBtn.MouseButton1Click:Connect(function() scrollPage2.Visible = false scrollUpdates.Visible = true titleLabel.Text = "KM studio - Updates" titleLabel.Position = UDim2.new(0, 40, 0, 0) backBtn.Visible = true playActivationGlow(true) end) local updateNoticeFrame = Instance.new("Frame") updateNoticeFrame.Size = UDim2.new(1, 0, 0, 160) updateNoticeFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50) updateNoticeFrame.BackgroundTransparency = 0.4 updateNoticeFrame.BorderColor3 = Color3.fromRGB(255, 255, 255) updateNoticeFrame.BorderSizePixel = 2 updateNoticeFrame.LayoutOrder = 1 updateNoticeFrame.ZIndex = 2 updateNoticeFrame.Parent = scrollUpdates local updateNoticeText = Instance.new("TextLabel") updateNoticeText.Size = UDim2.new(1, -16, 1, -16) updateNoticeText.Position = UDim2.new(0, 8, 0, 8) updateNoticeText.BackgroundTransparency = 1 updateNoticeText.TextColor3 = Color3.fromRGB(255, 255, 255) updateNoticeText.Font = Enum.Font.SourceSansBold updateNoticeText.TextSize = 13 updateNoticeText.TextWrapped = true updateNoticeText.TextXAlignment = Enum.TextXAlignment.Left updateNoticeText.TextYAlignment = Enum.TextYAlignment.Top updateNoticeText.Text = "LOG AKTUALIZACJA MENU\n\n- Naprawiono odtwarzacz muzyki i strumień głosowy!\n- Poprawiono synchronizację motywów (w tym kolor niebieski).\n\n-kami-noymless" updateNoticeText.ZIndex = 3 updateNoticeText.Parent = updateNoticeFrame local serverHopBtn = Instance.new("TextButton") serverHopBtn.Size = UDim2.new(1, 0, 0, 40) serverHopBtn.BackgroundColor3 = Color3.fromRGB(0, 120, 255) serverHopBtn.TextColor3 = Color3.fromRGB(255, 255, 255) serverHopBtn.Font = Enum.Font.SourceSansBold serverHopBtn.TextSize = 16 serverHopBtn.ZIndex = 3 serverHopBtn.Text = "Server Hop" serverHopBtn.LayoutOrder = 2 serverHopBtn.Parent = scrollUpdates applyClickSound(serverHopBtn) serverHopBtn.MouseButton1Click:Connect(function() playActivationGlow(true) pcall(function() serverHopBtn.Text = "Searching Server..." local servers = {} local req = HttpService:JSONDecode(game:HttpGet("https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?sortOrder=Asc&limit=100")) for _, s in ipairs(req.data) do if type(s) == "table" and s.playing < s.maxPlayers and s.id ~= game.JobId then table.insert(servers, s.id) end end if #servers > 0 then TeleportService:TeleportToPlaceInstance(game.PlaceId, servers[math.random(1, #servers)], player) else serverHopBtn.Text = "No servers found!" task.delay(2, function() serverHopBtn.Text = "Server Hop" end) end end) end) local rejoinBtn = Instance.new("TextButton") rejoinBtn.Size = UDim2.new(1, 0, 0, 40) rejoinBtn.BackgroundColor3 = Color3.fromRGB(200, 50, 50) rejoinBtn.TextColor3 = Color3.fromRGB(255, 255, 255) rejoinBtn.Font = Enum.Font.SourceSansBold rejoinBtn.TextSize = 16 rejoinBtn.ZIndex = 3 rejoinBtn.Text = "Rejoin Server" rejoinBtn.LayoutOrder = 3 rejoinBtn.Parent = scrollUpdates applyClickSound(rejoinBtn) rejoinBtn.MouseButton1Click:Connect(function() playActivationGlow(true) pcall(function() rejoinBtn.Text = "Rejoining..." TeleportService:TeleportToPlaceInstance(game.PlaceId, game.JobId, player) end) end) local function updateESP() if not states.ESP then return end local myChar = player.Character local myRoot = myChar and myChar:FindFirstChild("HumanoidRootPart") local activeNames = {} for _, p in ipairs(Players:GetPlayers()) do if p ~= player and p.Character then local char = p.Character local head = char:FindFirstChild("Head") local hum = char:FindFirstChildOfClass("Humanoid") local rootPart = char:FindFirstChild("HumanoidRootPart") if head and rootPart and hum and hum.Health > 0 then activeNames[p.Name] = true local hl = char:FindFirstChild("KM_ESP_Highlight") if not hl then hl = Instance.new("Highlight") hl.Name = "KM_ESP_Highlight" hl.FillColor = Color3.fromRGB(0, 255, 100) hl.OutlineColor = Color3.fromRGB(255, 255, 255) hl.FillTransparency = 0.55 hl.OutlineTransparency = 0 hl.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop hl.Adornee = char hl.Parent = char end local boxTag = "ESP_Box_" .. p.Name local boxAdornee = espFolder:FindFirstChild(boxTag) if not boxAdornee then boxAdornee = Instance.new("BoxHandleAdornment") boxAdornee.Name = boxTag boxAdornee.Adornee = char boxAdornee.AlwaysOnTop = true boxAdornee.ZIndex = 5 boxAdornee.Size = char:GetExtentsSize() boxAdornee.Color3 = Color3.fromRGB(0, 255, 100) boxAdornee.Transparency = 0.6 boxAdornee.Parent = espFolder else boxAdornee.Size = char:GetExtentsSize() end local distance = myRoot and math.floor((rootPart.Position - myRoot.Position).Magnitude) or 0 local tagName = "ESP_Text_" .. p.Name local billboard = espFolder:FindFirstChild(tagName) if not billboard then billboard = Instance.new("BillboardGui") billboard.Name = tagName billboard.Size = UDim2.new(0, 220, 0, 40) billboard.StudsOffset = Vector3.new(0, 2.8, 0) billboard.AlwaysOnTop = true local textLabel = Instance.new("TextLabel") textLabel.Name = "InfoLabel" textLabel.Size = UDim2.new(1, 0, 1, 0) textLabel.BackgroundTransparency = 1 textLabel.TextColor3 = Color3.fromRGB(0, 255, 100) textLabel.TextStrokeColor3 = Color3.fromRGB(0, 0, 0) textLabel.TextStrokeTransparency = 0 textLabel.Font = Enum.Font.SourceSansBold textLabel.TextSize = 14 textLabel.Parent = billboard billboard.Parent = espFolder end billboard.Adornee = head local lbl = billboard:FindFirstChild("InfoLabel") if lbl then lbl.Text = p.Name .. " | HP: " .. math.floor(hum.Health) .. " | " .. distance .. "m" end end end end for _, child in ipairs(espFolder:GetChildren()) do local targetName = string.gsub(child.Name, "^ESP_Text_", "") targetName = string.gsub(targetName, "^ESP_Box_", "") if not activeNames[targetName] then child:Destroy() end end end UserInputService.JumpRequest:Connect(function() if states.InfJump and player.Character then local hum = player.Character:FindFirstChildOfClass("Humanoid") if hum then hum:ChangeState(Enum.HumanoidStateType.Jumping) end end end) UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then draggingFOV = false draggingSpin = false draggingWalkSpeed = false draggingJumpPower = false end end) UserInputService.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then if draggingFOV then local pos = input.Position.X local absPos = cameraFrame.AbsolutePosition.X local absSize = cameraFrame.AbsoluteSize.X local relX = math.clamp((pos - absPos) / absSize, 0, 1) cameraFill.Size = UDim2.new(relX, 0, 1, 0) fovValue = math.floor(30 + (relX * 90)) local percent = math.floor((fovValue / 120) * 100) cameraLabel.Text = "Camera: " .. fovValue .. " (" .. percent .. "%)" camera.FieldOfView = fovValue elseif draggingSpin then local pos = input.Position.X local absPos = spinFrame.AbsolutePosition.X local absSize = spinFrame.AbsoluteSize.X local relX = math.clamp((pos - absPos) / absSize, 0, 1) spinFill.Size = UDim2.new(relX, 0, 1, 0) spinSpeed = math.floor(relX * 100) spinLabel.Text = "SpinBot: " .. spinSpeed .. " (" .. spinSpeed .. "%)" elseif draggingWalkSpeed then local pos = input.Position.X local absPos = walkSpeedFrame.AbsolutePosition.X local absSize = walkSpeedFrame.AbsoluteSize.X local relX = math.clamp((pos - absPos) / absSize, 0, 1) walkSpeedFill.Size = UDim2.new(relX, 0, 1, 0) speedValue = math.floor(16 + (relX * 334)) local percent = math.floor(relX * 100) walkSpeedLabel.Text = "WalkSpeed: " .. speedValue .. " (" .. percent .. "%)" elseif draggingJumpPower then local pos = input.Position.X local absPos = jumpPowerFrame.AbsolutePosition.X local absSize = jumpPowerFrame.AbsoluteSize.X local relX = math.clamp((pos - absPos) / absSize, 0, 1) jumpPowerFill.Size = UDim2.new(relX, 0, 1, 0) jumpPowerValue = math.floor(50 + (relX * 300)) local percent = math.floor(relX * 100) jumpPowerLabel.Text = "JumpPower: " .. jumpPowerValue .. " (" .. percent .. "%)" end end end) local soundSpamTimer = 0 local fpsUpdateTimer = 0 local frameCount = 0 local spamTimerMain = 0 RunService.RenderStepped:Connect(function(deltaTime) frameCount = frameCount + 1 fpsUpdateTimer = fpsUpdateTimer + deltaTime if fpsUpdateTimer >= 0.5 then local fps = math.floor(frameCount / fpsUpdateTimer) local ping = 0 pcall(function() ping = math.floor(Stats.Network.ServerStatsItem["Data Ping"]:GetValue()) end) fpsPingLabel.Text = "FPS: " .. fps .. " | Ping: " .. ping .. "ms" frameCount = 0 fpsUpdateTimer = 0 end end) RunService.Heartbeat:Connect(function(deltaTime) if player.Character and player.Character:FindFirstChildOfClass("Humanoid") then local hum = player.Character:FindFirstChildOfClass("Humanoid") if not states.CFrameWalk then hum.WalkSpeed = speedValue end hum.JumpPower = jumpPowerValue if states.SwimAir then pcall(function() hum:ChangeState(Enum.HumanoidStateType.Swimming) end) end end if states.FPSUnlocker and setfpscap then setfpscap(999) end if states.NoClip and player.Character then for _, part in ipairs(player.Character:GetDescendants()) do if part:IsA("BasePart") then part.CanCollide = false end end end if states.ESP then updateESP() end if states.ChatSpammer then spamTimerMain = spamTimerMain + deltaTime if spamTimerMain >= spamInterval then spamTimerMain = 0 pcall(function() if TextChatService.ChatVersion == Enum.ChatVersion.TextChatService then local channel = TextChatService.TextChannels.RBXGeneral if channel then channel:SendAsync(spamText) end else ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(spamText, "All") end end) end end if states.SoundSpammer then soundSpamTimer = soundSpamTimer + deltaTime if soundSpamTimer >= 3.0 then soundSpamTimer = 0 pcall(function() local sId = playlist[selectedSpamIndex].id local spamSnd = Instance.new("Sound") spamSnd.SoundId = "rbxassetid://" .. sId spamSnd.Volume = 10 spamSnd.Parent = SoundService spamSnd:Play() task.delay(3, function() if spamSnd then spamSnd:Destroy() end end) end) end end if states.Godmode and player.Character then local hum = player.Character:FindFirstChildOfClass("Humanoid") if hum then hum.MaxHealth = math.huge hum.Health = math.huge end end if states.WalkOnWater and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then local root = player.Character.HumanoidRootPart if not waterPlatform or not waterPlatform.Parent then waterPlatform = Instance.new("Part") waterPlatform.Name = "WaterPlatformKM" waterPlatform.Size = Vector3.new(6, 1, 6) waterPlatform.Anchored = true waterPlatform.Transparency = 0.7 waterPlatform.BrickColor = BrickColor.new("Cyan") waterPlatform.Parent = Workspace end waterPlatform.CFrame = CFrame.new(root.Position.X, root.Position.Y - 3.5, root.Position.Z) else if waterPlatform and waterPlatform.Parent then waterPlatform:Destroy() waterPlatform = nil end end if states.AntiRagdoll and player.Character then local hum = player.Character:FindFirstChildOfClass("Humanoid") if hum then pcall(function() hum:SetStateEnabled(Enum.HumanoidStateType.FallingDown, false) hum:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false) end) end end if states.HitboxExpander then for _, p in ipairs(Players:GetPlayers()) do if p ~= player and p.Character and p.Character:FindFirstChild("HumanoidRootPart") then local hrp = p.Character.HumanoidRootPart hrp.Size = Vector3.new(5, 5, 5) hrp.Transparency = 0.7 hrp.CanCollide = false end end end if states.Fly and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then local hum = player.Character:FindFirstChildOfClass("Humanoid") if hum then hum.PlatformStand = true end if flyBodyVelocity and flyBodyGyro then local camCF = camera.CFrame local moveDir = hum.MoveDirection local velocity = Vector3.new(0, 0, 0) if moveDir.Magnitude > 0 then local lookVector = camCF.LookVector local rightVector = camCF.RightVector local flyDir = (rightVector * moveDir.X + Vector3.new(lookVector.X, 0, lookVector.Z).Unit * -moveDir.Z) if flyDir.Magnitude > 0 then velocity = flyDir.Unit * flySpeed end end flyBodyVelocity.Velocity = velocity flyBodyGyro.CFrame = camCF end end if camera then camera.FieldOfView = fovValue end if spinSpeed > 0 and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then local root = player.Character.HumanoidRootPart root.CFrame = root.CFrame * CFrame.Angles(0, math.rad(spinSpeed * 20 * deltaTime), 0) end local isPlayingMusic = states.Music and customSound and customSound.IsPlaying if isPlayingMusic then local volMultiplier = math.clamp(musicVolumeValue, 0.2, 3) for i = 1, #bottomAudioBars do local barInfo = bottomAudioBars[i] barInfo.timer = barInfo.timer + (deltaTime * barInfo.speed) local waveHeight = math.floor((110 + (math.sin(barInfo.timer + (i * 0.5)) * 95)) * volMultiplier) barInfo.frame.Size = UDim2.new(0, 38, 0, math.clamp(waveHeight, 20, 300)) end end if states.RainbowSkin and player.Character then local hue = tick() % 5 / 5 local rainbowColor = Color3.fromHSV(hue, 1, 1) for _, part in ipairs(player.Character:GetChildren()) do if part:IsA("BasePart") then part.Color = rainbowColor end end end if states.RainbowMap and not states.Fullbright then Lighting.Ambient = Color3.fromHSV(tick() % 5 / 5, 1, 1) Lighting.OutdoorAmbient = Color3.fromHSV((tick() + 2.5) % 5 / 5, 1, 1) end end)