local Players = game:GetService("Players") local CoreGui = game:GetService("CoreGui") local localPlayer = Players.LocalPlayer local parentGui = nil if pcall(function() local t = CoreGui.Name end) then parentGui = CoreGui else parentGui = localPlayer:WaitForChild("PlayerGui") end if parentGui:FindFirstChild("MK_QuickEditSystem") then parentGui["MK_QuickEditSystem"]:Destroy() end local screenGui = Instance.new("ScreenGui") screenGui.Name = "MK_QuickEditSystem" screenGui.ResetOnSpawn = false screenGui.Parent = parentGui -- ========================================== -- 1. CREATING THE MK TOGGLE BUTTON -- ========================================== local mkButton = Instance.new("TextButton") mkButton.Name = "MK_ToggleButton" mkButton.Size = UDim2.new(0, 50, 0, 50) mkButton.Position = UDim2.new(0, 20, 0.5, -25) mkButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0) mkButton.BorderColor3 = Color3.fromRGB(255, 255, 255) mkButton.BorderSizePixel = 2 mkButton.Text = "MK" mkButton.TextColor3 = Color3.fromRGB(255, 255, 255) mkButton.TextSize = 20 mkButton.Font = Enum.Font.SourceSansBold mkButton.Parent = screenGui local uiCornerMK = Instance.new("UICorner") uiCornerMK.CornerRadius = UDim.new(1, 0) uiCornerMK.Parent = mkButton local dragging, dragInput, dragStart, startPos mkButton.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = mkButton.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) mkButton.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) game:GetService("UserInputService").InputChanged:Connect(function(input) if input == dragInput and dragging then local delta = input.Position - dragStart mkButton.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end end) -- ========================================== -- 2. CREATING THE MAIN INTERFACE (UI) -- ========================================== local mainFrame = Instance.new("Frame") mainFrame.Name = "MainScoreboard" mainFrame.Size = UDim2.new(0, 350, 0, 250) mainFrame.Position = UDim2.new(0.5, -175, 0.5, -125) mainFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0) mainFrame.BorderColor3 = Color3.fromRGB(255, 255, 255) mainFrame.BorderSizePixel = 3 mainFrame.Visible = true mainFrame.Parent = screenGui local titleLabel = Instance.new("TextLabel") titleLabel.Size = UDim2.new(1, 0, 0, 40) titleLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0) titleLabel.BorderColor3 = Color3.fromRGB(255, 255, 255) titleLabel.BorderSizePixel = 2 titleLabel.Text = "Calculating Points" titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255) titleLabel.TextSize = 20 titleLabel.Font = Enum.Font.SourceSansBold titleLabel.Parent = mainFrame local leftFrame = Instance.new("Frame") leftFrame.Size = UDim2.new(0.5, 0, 1, -40) leftFrame.Position = UDim2.new(0, 0, 0, 40) leftFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0) leftFrame.BorderColor3 = Color3.fromRGB(255, 255, 255) leftFrame.BorderSizePixel = 1 leftFrame.Parent = mainFrame local timeLabel = Instance.new("TextLabel") timeLabel.Size = UDim2.new(1, -20, 0, 30) timeLabel.Position = UDim2.new(0, 10, 0, 15) timeLabel.BackgroundTransparency = 1 timeLabel.Text = "Time: 00:00" timeLabel.TextColor3 = Color3.fromRGB(255, 255, 255) timeLabel.TextSize = 18 timeLabel.TextXAlignment = Enum.TextXAlignment.Left timeLabel.Font = Enum.Font.SourceSans timeLabel.Parent = leftFrame local deathsLabel = Instance.new("TextLabel") deathsLabel.Size = UDim2.new(1, -20, 0, 50) deathsLabel.Position = UDim2.new(0, 10, 0, 45) deathsLabel.BackgroundTransparency = 1 deathsLabel.Text = "Number of\nDeaths: 0" deathsLabel.TextColor3 = Color3.fromRGB(255, 255, 255) deathsLabel.TextSize = 18 deathsLabel.TextXAlignment = Enum.TextXAlignment.Left deathsLabel.Font = Enum.Font.SourceSans deathsLabel.Parent = leftFrame local rightFrame = Instance.new("Frame") rightFrame.Size = UDim2.new(0.5, 0, 1, -40) rightFrame.Position = UDim2.new(0.5, 0, 0, 40) rightFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0) rightFrame.BorderColor3 = Color3.fromRGB(255, 255, 255) rightFrame.BorderSizePixel = 1 rightFrame.Parent = mainFrame local targetInput = Instance.new("TextBox") targetInput.Size = UDim2.new(1, -20, 0, 30) targetInput.Position = UDim2.new(0, 10, 0, 15) targetInput.BackgroundColor3 = Color3.fromRGB(0, 0, 0) targetInput.BorderColor3 = Color3.fromRGB(255, 255, 255) targetInput.BorderSizePixel = 2 targetInput.Text = "" targetInput.PlaceholderText = "Target... @" targetInput.PlaceholderColor3 = Color3.fromRGB(150, 150, 150) targetInput.TextColor3 = Color3.fromRGB(255, 255, 255) targetInput.TextSize = 14 targetInput.Font = Enum.Font.SourceSans targetInput.Parent = rightFrame local avatarImage = Instance.new("ImageLabel") avatarImage.Size = UDim2.new(0, 42, 0, 42) avatarImage.Position = UDim2.new(0, 10, 0, 55) avatarImage.BackgroundColor3 = Color3.fromRGB(0, 0, 0) avatarImage.BorderColor3 = Color3.fromRGB(255, 255, 255) avatarImage.BorderSizePixel = 2 avatarImage.Image = "" avatarImage.Parent = rightFrame local entryLabel = Instance.new("TextLabel") entryLabel.Size = UDim2.new(1, -60, 0, 40) entryLabel.Position = UDim2.new(0, 60, 0, 55) entryLabel.BackgroundTransparency = 1 entryLabel.Text = "Number of\nEntry: 0" entryLabel.TextColor3 = Color3.fromRGB(255, 255, 255) entryLabel.TextSize = 13 entryLabel.TextXAlignment = Enum.TextXAlignment.Left entryLabel.Font = Enum.Font.SourceSans entryLabel.Parent = rightFrame local exitLabel = Instance.new("TextLabel") exitLabel.Size = UDim2.new(1, -20, 0, 40) exitLabel.Position = UDim2.new(0, 10, 0, 100) exitLabel.BackgroundTransparency = 1 exitLabel.Text = "Number of\nExit: 0" exitLabel.TextColor3 = Color3.fromRGB(255, 255, 255) exitLabel.TextSize = 14 exitLabel.TextXAlignment = Enum.TextXAlignment.Left exitLabel.Font = Enum.Font.SourceSans exitLabel.Parent = rightFrame -- ========================================== -- 3. CORE LOGIC & FIXED PLAYER SYSTEM -- ========================================== mkButton.MouseButton1Click:Connect(function() mainFrame.Visible = not mainFrame.Visible end) local startTime = os.time() task.spawn(function() while mainFrame and mainFrame.Parent do local elapsed = os.time() - startTime local minutes = math.floor(elapsed / 60) local seconds = elapsed % 60 timeLabel.Text = string.format("Time: %02d:%02d", minutes, seconds) task.wait(1) end end) -- Deaths Counter (Fixed Comparison) local deathCount = 0 deathsLabel.Text = "Number of\nDeaths: " .. deathCount local function trackDeaths(character) local humanoid = character:WaitForChild("Humanoid", 5) if humanoid then humanoid.Died:Connect(function() deathCount = deathCount + 1 deathsLabel.Text = "Number of\nDeaths: " .. deathCount end) end end if localPlayer.Character then trackDeaths(localPlayer.Character) end localPlayer.CharacterAdded:Connect(trackDeaths) -- Global Saved Target Data local trackedUserId = nil local trackedUsername = "" local entryCount = 0 local exitCount = 0 local function updateUI() entryLabel.Text = "Number of\nEntry: " .. entryCount exitLabel.Text = "Number of\nExit: " .. exitCount end -- Target System Input Listener targetInput:GetPropertyChangedSignal("Text"):Connect(function() local searchText = targetInput.Text:lower() if #searchText < 3 then avatarImage.Image = "" trackedUserId = nil trackedUsername = "" entryCount = 0 exitCount = 0 updateUI() return end local foundPlayer = nil for _, player in ipairs(Players:GetPlayers()) do if string.sub(player.Name:lower(), 1, #searchText) == searchText or string.sub(player.DisplayName:lower(), 1, #searchText) == searchText then foundPlayer = player break end end if foundPlayer then if trackedUserId ~= foundPlayer.UserId then trackedUserId = foundPlayer.UserId trackedUsername = foundPlayer.Name entryCount = 0 exitCount = 0 updateUI() end pcall(function() local thumbType = Enum.ThumbnailType.HeadShot local thumbSize = Enum.ThumbnailSize.Size420x420 local content, isReady = Players:GetUserThumbnailAsync(trackedUserId, thumbType, thumbSize) avatarImage.Image = content end) else avatarImage.Image = "" trackedUserId = nil trackedUsername = "" entryCount = 0 exitCount = 0 updateUI() end end) -- Safe Tracking Using Fixed Username and UserId Players.PlayerAdded:Connect(function(player) if trackedUsername ~= "" and player.Name:lower() == trackedUsername:lower() then entryCount = entryCount + 1 updateUI() end end) Players.PlayerRemoving:Connect(function(player) if trackedUserId ~= nil and player.UserId == trackedUserId then exitCount = exitCount + 1 updateUI() end end)