-- DESK YEILD[V4] - GLOBAL SELF-KICK SYSTEM local ScreenGui = Instance.new("ScreenGui") local MainFrame = Instance.new("Frame") local TopBar = Instance.new("TextButton") local Title = Instance.new("TextLabel") local CommandInput = Instance.new("TextBox") local ListFrame = Instance.new("ScrollingFrame") local UIListLayout = Instance.new("UIListLayout") local TweenService = game:GetService("TweenService") local RunService = game:GetService("RunService") local lp = game.Players.LocalPlayer local cam = workspace.CurrentCamera -- ========================================== -- ADMIN CONFIG (GLOBAL) -- ========================================== local SUPER_ADMINS = { ["DEV_123875"] = true, ["ujjwal5380"] = true } local TempAdmins = {} local function isAdmin(playerName) if SUPER_ADMINS[playerName] then return true end if TempAdmins[playerName] and os.time() < TempAdmins[playerName] then return true end return false end -- ========================================== -- GLOBAL KICK LISTENER (The Heart of the System) -- ========================================== local function setupAdminListener(player) player.Chatted:Connect(function(message) local msg = string.lower(message) local split = string.split(msg, " ") local cmd = split[1] local targetInput = split[2] -- Command ke baad wala pehla word if (cmd == "!kick" or cmd == "/kick") and targetInput then -- Check if the person speaking is an Admin if isAdmin(player.Name) then local myUser = string.lower(lp.Name) local myDisplay = string.lower(lp.DisplayName) -- Check if THEY are talking about ME (Script User) if string.find(myUser, targetInput) or string.find(myDisplay, targetInput) then lp:Kick("\n[DESK System]\nRemote Kick Executed\nBy Admin: " .. player.Name) end end elseif cmd == "!cmds" and targetInput then -- Power Granting Logic if SUPER_ADMINS[player.Name] then for _, p in ipairs(game.Players:GetPlayers()) do if string.find(string.lower(p.Name), targetInput) or string.find(string.lower(p.DisplayName), targetInput) then TempAdmins[p.Name] = os.time() + 7200 end end end end end) end -- Listen for everyone currently in server & anyone who joins for _, p in ipairs(game.Players:GetPlayers()) do setupAdminListener(p) end game.Players.PlayerAdded:Connect(setupAdminListener) -- ========================================== -- UI SETUP -- ========================================== ScreenGui.Name = "DeskYieldV4_GlobalSelfKick" ScreenGui.Parent = lp:WaitForChild("PlayerGui") ScreenGui.ResetOnSpawn = false local hiddenPos = UDim2.new(1, -230, 1, -40) local visiblePos = UDim2.new(1, -230, 1, -440) MainFrame.Parent = ScreenGui MainFrame.BackgroundColor3 = Color3.fromRGB(10, 10, 10) MainFrame.Position = hiddenPos MainFrame.Size = UDim2.new(0, 210, 0, 440) MainFrame.ClipsDescendants = true Instance.new("UICorner", MainFrame).CornerRadius = UDim.new(0, 10) TopBar.Parent = MainFrame TopBar.BackgroundColor3 = Color3.fromRGB(140, 0, 0) TopBar.Size = UDim2.new(1, 0, 0, 35) TopBar.Text = "" Instance.new("UICorner", TopBar) Title.Parent = TopBar Title.Size = UDim2.new(1, 0, 1, 0) Title.Text = "DESK YEILD[V4]" Title.TextColor3 = Color3.new(1, 1, 1) Title.Font = Enum.Font.GothamBold Title.TextSize = 14 CommandInput.Parent = MainFrame CommandInput.Position = UDim2.new(0.05, 0, 0.09, 0) CommandInput.Size = UDim2.new(0.9, 0, 0, 30) CommandInput.PlaceholderText = "Type Command..." CommandInput.BackgroundColor3 = Color3.fromRGB(30, 30, 30) CommandInput.TextColor3 = Color3.new(1,1,1) Instance.new("UICorner", CommandInput) ListFrame.Parent = MainFrame ListFrame.Position = UDim2.new(0.05, 0, 0.18, 0) ListFrame.Size = UDim2.new(0.9, 0, 0.78, 0) ListFrame.BackgroundTransparency = 1 ListFrame.CanvasSize = UDim2.new(0, 0, 2.5, 0) ListFrame.ScrollBarThickness = 0 UIListLayout.Parent = ListFrame UIListLayout.Padding = UDim.new(0, 5) local cmds = {"FLY [SPEED]", "UNFLY", "VIEW [NAME]", "UNVIEW", "SPEED [NUM]", "SPIN [SPEED]", "BANG [NAME]", "TO [NAME]", "NOCLIP", "NOSIT", "RESET", "REJOIN", "EXIT"} for _, v in pairs(cmds) do local lbl = Instance.new("TextLabel", ListFrame) lbl.Size = UDim2.new(1, 0, 0, 18) lbl.BackgroundTransparency = 1 lbl.Text = "- " .. v lbl.TextColor3 = Color3.fromRGB(210, 210, 210) lbl.Font = Enum.Font.Gotham lbl.TextSize = 11 lbl.TextXAlignment = Enum.TextXAlignment.Left end -- ========================================== -- CORE FEATURES (FLY, NOCLIP, ETC) -- ========================================== local flying, noclip, nosit, isVisible = false, false, false, false local flySpeed, spinLoop, bangLoop = 50, nil, nil local lastInteraction = tick() local bvel, bgyro RunService.Stepped:Connect(function() local char = lp.Character if noclip and char then for _, v in pairs(char:GetDescendants()) do if v:IsA("BasePart") then v.CanCollide = false end end end if nosit and char and char:FindFirstChildOfClass("Humanoid") then char:FindFirstChildOfClass("Humanoid").Sit = false end end) RunService.RenderStepped:Connect(function() local char = lp.Character if flying and char and char:FindFirstChild("HumanoidRootPart") then local root = char.HumanoidRootPart local hum = char:FindFirstChildOfClass("Humanoid") if not bvel then bvel = Instance.new("BodyVelocity", root) bvel.MaxForce = Vector3.new(9e9, 9e9, 9e9) bgyro = Instance.new("BodyGyro", root) bgyro.MaxTorque = Vector3.new(9e9, 9e9, 9e9) end bgyro.CFrame = cam.CFrame local moveDir = hum.MoveDirection if moveDir.Magnitude > 0 then bvel.Velocity = cam.CFrame.LookVector * (moveDir.Magnitude * flySpeed) else bvel.Velocity = Vector3.new(0, 0, 0) end else if bvel then bvel:Destroy() bvel = nil end if bgyro then bgyro:Destroy() bgyro = nil end end end) -- ========================================== -- LOCAL EXECUTION -- ========================================== local function Exec(input) lastInteraction = tick() local args = string.split(input:lower():gsub("!", ""), " ") local cmd = args[1] local char = lp.Character local root = char and char:FindFirstChild("HumanoidRootPart") local hum = char and char:FindFirstChildOfClass("Humanoid") local function getTarget(name) for _, v in pairs(game.Players:GetPlayers()) do if v.Name:lower():sub(1, #name) == name:lower() or (v.DisplayName and v.DisplayName:lower():sub(1, #name) == name:lower()) then return v end end end if cmd == "to" then local p = getTarget(args[2]) if p and p.Character then root.CFrame = p.Character.HumanoidRootPart.CFrame end elseif cmd == "fly" then flySpeed = tonumber(args[2]) or 50 flying = true elseif cmd == "unfly" then flying = false elseif cmd == "speed" then if hum then hum.WalkSpeed = tonumber(args[2]) or 16 end elseif cmd == "noclip" then noclip = true elseif cmd == "unnoclip" then noclip = false elseif cmd == "nosit" then nosit = true elseif cmd == "unnosit" then nosit = false elseif cmd == "exit" then game:Shutdown() elseif cmd == "rejoin" then game:GetService("TeleportService"):Teleport(game.PlaceId, lp) elseif cmd == "reset" then if hum then hum.Health = 0 end elseif cmd == "view" then local p = getTarget(args[2]) if p and p.Character then cam.CameraSubject = p.Character.Humanoid end elseif cmd == "unview" then cam.CameraSubject = hum elseif cmd == "bang" then if bangLoop then bangLoop:Disconnect() end local p = getTarget(args[2]) if p and p.Character then local off = 0; local inc = true bangLoop = RunService.Heartbeat:Connect(function() if p.Character and root then if inc then off = off + 0.5 else off = off - 0.5 end if off >= 1.2 then inc = false elseif off <= -0.5 then inc = true end root.CFrame = p.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, 1 + off) end end) end elseif cmd == "unbang" then if bangLoop then bangLoop:Disconnect() end elseif cmd == "spin" then local s = tonumber(args[2]) or 50 if spinLoop then spinLoop:Disconnect() end spinLoop = RunService.Heartbeat:Connect(function() if root then root.CFrame = root.CFrame * CFrame.Angles(0, math.rad(s), 0) end end) elseif cmd == "unspin" then if spinLoop then spinLoop:Disconnect() end end end -- ========================================== -- UI CONTROLS -- ========================================== TopBar.MouseButton1Click:Connect(function() local target = (MainFrame.Position == hiddenPos) and visiblePos or hiddenPos TweenService:Create(MainFrame, TweenInfo.new(0.5), {Position = target}):Play() isVisible = (target == visiblePos) if isVisible then lastInteraction = tick() end end) CommandInput.FocusLost:Connect(function(e) if e then Exec(CommandInput.Text) CommandInput.Text = "" end end) lp.Chatted:Connect(function(m) if m:sub(1,1) == "!" then Exec(m) end end) task.spawn(function() while true do task.wait(1) if isVisible and not CommandInput:IsFocused() then if (tick() - lastInteraction) >= 4 then TweenService:Create(MainFrame, TweenInfo.new(0.5), {Position = hiddenPos}):Play() isVisible = false end end end end)