Kick Script For Private Server
Key RequiredUniversal

Kick Script For Private Server

Universal ScripteSeekplayseSeekplays 309 views 8.1K executesUpdated Aug 2, 2026
Unrated
00
Lua Script•318 lines (10803 chars)
-- StarterGui ichiga LocalScript ochib joylashtiring
-- Qora dizayn, binafsha ramka, binafsha rangli "i" ma'lumot tugmasi va yangilangan matnli oxirgi versiya.

local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local UserInputService = game:GetService("UserInputService")
local Camera = workspace.CurrentCamera

local localPlayer = Players.LocalPlayer
local playerGui = localPlayer:WaitForChild("PlayerGui")

-- Eski GUI ni tozalash
if playerGui:FindFirstChild("VantixAdminGui") then
	playerGui.VantixAdminGui:Destroy()
end

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "VantixAdminGui"
screenGui.ResetOnSpawn = false
screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
screenGui.Parent = playerGui

-- Asosiy Qora Oyna
local mainFrame = Instance.new("Frame")
mainFrame.Size = UDim2.new(0, 240, 0, 280)
mainFrame.Position = UDim2.new(0.5, -120, 0.5, -140)
mainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 26)
mainFrame.BorderSizePixel = 0
mainFrame.Active = true
mainFrame.ClipsDescendants = false
mainFrame.Parent = screenGui

Instance.new("UICorner", mainFrame).CornerRadius = UDim.new(0, 10)

-- Frame chetlarini binafsha (Purple) rangga bo'yash uchun UIStroke
local frameStroke = Instance.new("UIStroke")
frameStroke.Color = Color3.fromRGB(160, 32, 240)
frameStroke.Thickness = 2
frameStroke.Parent = mainFrame

-- Header (Qora rangda)
local header = Instance.new("Frame")
header.Size = UDim2.new(1, 0, 0, 32)
header.BackgroundColor3 = Color3.fromRGB(28, 28, 36)
header.BorderSizePixel = 0
header.Parent = mainFrame

Instance.new("UICorner", header).CornerRadius = UDim.new(0, 10)

-- Texture ID Icon (To'liq oq rangda)
local iconImg = Instance.new("ImageLabel")
iconImg.Size = UDim2.new(0, 20, 0, 20)
iconImg.Position = UDim2.new(0, 8, 0.5, -10)
iconImg.BackgroundTransparency = 1
iconImg.Image = "rbxassetid://111934201357670"
iconImg.ImageColor3 = Color3.fromRGB(255, 255, 255)
iconImg.Parent = header

local titleLabel = Instance.new("TextLabel")
titleLabel.Size = UDim2.new(1, -85, 1, 0)
titleLabel.Position = UDim2.new(0, 32, 0, 0)
titleLabel.BackgroundTransparency = 1
titleLabel.Text = "Private Server"
titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
titleLabel.TextSize = 11
titleLabel.Font = Enum.Font.GothamBold
titleLabel.TextXAlignment = Enum.TextXAlignment.Left
titleLabel.Parent = header

-- Yopish tugmasi (X)
local closeButton = Instance.new("TextButton")
closeButton.Size = UDim2.new(0, 22, 0, 22)
closeButton.Position = UDim2.new(1, -26, 0, 5)
closeButton.BackgroundColor3 = Color3.fromRGB(220, 50, 50)
closeButton.Text = "X"
closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
closeButton.TextSize = 11
closeButton.Font = Enum.Font.GothamBold
closeButton.Parent = header

Instance.new("UICorner", closeButton).CornerRadius = UDim.new(0, 5)

-- Ma'lumot tugmasi (i) - Binafsha rangda
local infoButton = Instance.new("TextButton")
infoButton.Size = UDim2.new(0, 22, 0, 22)
infoButton.Position = UDim2.new(1, -52, 0, 5)
infoButton.BackgroundColor3 = Color3.fromRGB(160, 32, 240) -- Binafsha rang
infoButton.Text = "i"
infoButton.TextColor3 = Color3.fromRGB(255, 255, 255)
infoButton.TextSize = 12
infoButton.Font = Enum.Font.GothamBold
infoButton.Parent = header

Instance.new("UICorner", infoButton).CornerRadius = UDim.new(0, 5)

-- Info Oynasi
local infoFrame = Instance.new("Frame")
infoFrame.Size = UDim2.new(1, 0, 1, 0)
infoFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 24)
infoFrame.BorderSizePixel = 0
infoFrame.Visible = false
infoFrame.ZIndex = 5
infoFrame.Parent = mainFrame

Instance.new("UICorner", infoFrame).CornerRadius = UDim.new(0, 10)

local infoText = Instance.new("TextLabel")
infoText.Size = UDim2.new(1, -20, 1, -50)
infoText.Position = UDim2.new(0, 10, 0, 10)
infoText.BackgroundTransparency = 1
infoText.Text = "Subscribe To eSeekplays\n\nMade By eSeekplays\n\nHow This Script Works:\nThis tool allows you to manage players in your private server seamlessly. You can view active players and kick unwanted users instantly with a single tap.\n\nNote: This Script Only Work in Private Servers!"
infoText.TextColor3 = Color3.fromRGB(255, 255, 255)
infoText.TextSize = 11
infoText.Font = Enum.Font.GothamBold
infoText.TextWrapped = true
infoText.TextXAlignment = Enum.TextXAlignment.Center
infoText.TextYAlignment = Enum.TextYAlignment.Center
infoText.ZIndex = 6
infoText.Parent = infoFrame

local backButton = Instance.new("TextButton")
backButton.Size = UDim2.new(0, 80, 0, 26)
backButton.Position = UDim2.new(0.5, -40, 1, -35)
backButton.BackgroundColor3 = Color3.fromRGB(160, 32, 240) -- OK tugmasi ham binafsha rangda
backButton.Text = "OK"
backButton.TextColor3 = Color3.fromRGB(255, 255, 255)
backButton.TextSize = 11
backButton.Font = Enum.Font.GothamBold
backButton.ZIndex = 6
backButton.Parent = infoFrame

Instance.new("UICorner", backButton).CornerRadius = UDim.new(0, 6)

infoButton.MouseButton1Click:Connect(function()
	infoFrame.Visible = true
end)

backButton.MouseButton1Click:Connect(function()
	infoFrame.Visible = false
end)

-- Ochish uchun kichik tugma
local openButton = Instance.new("TextButton")
openButton.Size = UDim2.new(0, 35, 0, 35)
openButton.Position = UDim2.new(1, -45, 0, 15)
openButton.BackgroundColor3 = Color3.fromRGB(30, 30, 40)
openButton.Text = "⚙️"
openButton.TextSize = 16
openButton.Visible = false
openButton.Parent = screenGui

Instance.new("UICorner", openButton).CornerRadius = UDim.new(1, 0)

-- Oynani surish va Ekran ichida saqlash (Clamping)
local dragging, dragStart, startPos

header.InputBegan:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
		dragging = true
		dragStart = input.Position
		startPos = mainFrame.AbsolutePosition
		
		input.Changed:Connect(function()
			if input.UserInputState == Enum.UserInputState.End then
				dragging = false
			end
		end)
	end
end)

UserInputService.InputChanged:Connect(function(input)
	if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
		local delta = input.Position - dragStart
		local newX = startPos.X + delta.X
		local newY = startPos.Y + delta.Y
		
		local viewportSize = Camera.ViewportSize
		local frameSize = mainFrame.AbsoluteSize
		
		newX = math.clamp(newX, 0, viewportSize.X - frameSize.X)
		newY = math.clamp(newY, 0, viewportSize.Y - frameSize.Y)
		
		mainFrame.Position = UDim2.new(0, newX, 0, newY)
	end
end)

-- Ochish / Yopish Animatsiyalari
local isOpen = true

closeButton.MouseButton1Click:Connect(function()
	if isOpen then
		isOpen = false
		local tween = TweenService:Create(mainFrame, TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Size = UDim2.new(0, 0, 0, 0), BackgroundTransparency = 1})
		tween:Play()
		tween.Completed:Connect(function()
			mainFrame.Visible = false
			openButton.Visible = true
		end)
	end
end)

openButton.MouseButton1Click:Connect(function()
	if not isOpen then
		isOpen = true
		openButton.Visible = false
		mainFrame.Visible = true
		mainFrame.Size = UDim2.new(0, 0, 0, 0)
		mainFrame.BackgroundTransparency = 0
		
		local tween = TweenService:Create(mainFrame, TweenInfo.new(0.3, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {Size = UDim2.new(0, 240, 0, 280)})
		tween:Play()
	end
end)

-- Frame YUQORISIDA ko'rinmas, kattalashtirilgan va "YouTube @eSeekplays" yozuvli nusxalash tugmasi
local copyButton = Instance.new("TextButton")
copyButton.Size = UDim2.new(1, 0, 0, 25)
copyButton.Position = UDim2.new(0, 0, 0, -31)
copyButton.BackgroundTransparency = 1
copyButton.Text = "YouTube @eSeekplays"
copyButton.TextColor3 = Color3.fromRGB(160, 32, 240)
copyButton.TextSize = 15
copyButton.Font = Enum.Font.GothamBold
copyButton.Parent = mainFrame

copyButton.MouseButton1Click:Connect(function()
	local success = pcall(function()
		setclipboard("https://youtube.com/@eseekplays?si=eqrLPGc0VuMsv3iA")
	end)
	
	if success then
		copyButton.Text = "Copied!"
		task.wait(1.5)
		copyButton.Text = "YouTube @eSeekplays"
	else
		copyButton.Text = "Failed!"
		task.wait(1.5)
		copyButton.Text = "YouTube @eSeekplays"
	end
end)

-- O'yinchilar ro'yxati (Qora dizayn)
local scrollFrame = Instance.new("ScrollingFrame")
scrollFrame.Size = UDim2.new(1, -12, 1, -42)
scrollFrame.Position = UDim2.new(0, 6, 0, 36)
scrollFrame.BackgroundTransparency = 1
scrollFrame.BorderSizePixel = 0
scrollFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
scrollFrame.ScrollBarThickness = 2
scrollFrame.Parent = mainFrame

local listLayout = Instance.new("UIListLayout")
listLayout.SortOrder = Enum.SortOrder.LayoutOrder
listLayout.Padding = UDim.new(0, 5)
listLayout.Parent = scrollFrame

local function updatePlayerList()
	for _, child in ipairs(scrollFrame:GetChildren()) do
		if child:IsA("Frame") then
			child:Destroy()
		end
	end
	
	for _, p in ipairs(Players:GetPlayers()) do
		if p ~= localPlayer then
			local item = Instance.new("Frame")
			item.Size = UDim2.new(1, 0, 0, 38)
			item.BackgroundColor3 = Color3.fromRGB(26, 26, 34)
			item.BorderSizePixel = 0
			item.Parent = scrollFrame
			
			Instance.new("UICorner", item).CornerRadius = UDim.new(0, 6)
			
			local avatarImg = Instance.new("ImageLabel")
			avatarImg.Size = UDim2.new(0, 28, 0, 28)
			avatarImg.Position = UDim2.new(0, 5, 0, 5)
			avatarImg.BackgroundColor3 = Color3.fromRGB(40, 40, 55)
			avatarImg.Image = Players:GetUserThumbnailAsync(p.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size150x150)
			avatarImg.Parent = item
			
			Instance.new("UICorner", avatarImg).CornerRadius = UDim.new(1, 0)
			
			local nameLbl = Instance.new("TextLabel")
			nameLbl.Size = UDim2.new(1, -95, 1, 0)
			nameLbl.Position = UDim2.new(0, 38, 0, 0)
			nameLbl.BackgroundTransparency = 1
			nameLbl.Text = p.Name
			nameLbl.TextColor3 = Color3.fromRGB(255, 255, 255)
			nameLbl.TextSize = 10
			nameLbl.Font = Enum.Font.GothamBold
			nameLbl.TextXAlignment = Enum.TextXAlignment.Left
			nameLbl.Parent = item
			
			local kickBtn = Instance.new("TextButton")
			kickBtn.Size = UDim2.new(0, 45, 0, 22)
			kickBtn.Position = UDim2.new(1, -50, 0.5, -11)
			kickBtn.BackgroundColor3 = Color3.fromRGB(200, 40, 40)
			kickBtn.Text = "KICK"
			kickBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
			kickBtn.TextSize = 9
			kickBtn.Font = Enum.Font.GothamBold
			kickBtn.Parent = item
			
			Instance.new("UICorner", kickBtn).CornerRadius = UDim.new(0, 4)
			
			kickBtn.MouseButton1Click:Connect(function()
				p:Kick("You have been kicked from the private server!")
				item:Destroy()
			end)
		end
	end
	
	scrollFrame.CanvasSize = UDim2.new(0, 0, 0, listLayout.AbsoluteContentSize.Y + 10)
end

Players.PlayerAdded:Connect(updatePlayerList)
Players.PlayerRemoving:Connect(updatePlayerList)
updatePlayerList()

Features & Information

Kick Script Only Works in Private Servers

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts