0% found this document useful (0 votes)
59 views8 pages

PL Kick GUI

The document contains code for creating a GUI in Roblox Studio using Lua that allows kicking players from a game. It creates frames, labels, buttons and text boxes and connects them to functions for finding players by name and invoking the votekick server remote procedure to kick players.

Uploaded by

Brandon Gomez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views8 pages

PL Kick GUI

The document contains code for creating a GUI in Roblox Studio using Lua that allows kicking players from a game. It creates frames, labels, buttons and text boxes and connects them to functions for finding players by name and invoking the votekick server remote procedure to kick players.

Uploaded by

Brandon Gomez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 8

local gui = Instance.

new("ScreenGui")
local main = Instance.new("Frame")
local title = Instance.new("TextLabel")
local kick = Instance.new("TextButton")
local kicktext = Instance.new("TextBox")
local title_2 = Instance.new("TextLabel")
local close = Instance.new("TextButton")
local openmain = Instance.new("Frame")
local open = Instance.new("TextButton")
--Properties:
gui.Name = "gui"
gui.Parent = game.CoreGui

main.Name = "main"
main.Parent = gui
main.BackgroundColor3 = Color3.new(0, 0, 0)
main.Position = UDim2.new(0.276372612, 0, 0.55282557, 0)
main.Size = UDim2.new(0, 234, 0, 146)
main.Active = true
main.Draggable = true

local Players = game:GetService("Players")


local LocalPlayer = Players.LocalPlayer
local function RemoveSpaces(String)
return String:gsub("%s+", "") or String
end

local function FindPlayer(String)


String = RemoveSpaces(String)
for _, _Player in pairs(Players:GetPlayers()) do
if _Player.Name:lower():match('^'.. String:lower()) then
return _Player
end
end
return nil
end

title.Name = "title"
title.Parent = main
title.BackgroundColor3 = Color3.new(1, 1, 0)
title.Size = UDim2.new(0, 234, 0, 31)
title.Font = Enum.Font.Legacy
title.Text = "Prison Life Kick Player"
title.TextColor3 = Color3.new(0, 0, 0)
title.TextSize = 14

kick.Name = "kick"
kick.Parent = main
kick.BackgroundColor3 = Color3.new(1, 0, 0)
kick.Position = UDim2.new(0.0726495758, 0, 0.534832001, 0)
kick.Size = UDim2.new(0, 200, 0, 33)
kick.Font = Enum.Font.Cartoon
kick.Text = "KICK"
kick.TextColor3 = Color3.new(0, 0, 0)
kick.TextSize = 14
kick.MouseButton1Down:connect(function()
game:GetService("StarterGui"):SetCore("SendNotification", {
Title = "Player will be kicked!";
Text = "Please wait up to 30 secs!!";
})
local kick = FindPlayer(kicktext.Text)
for i,v in pairs(game.Players:GetChildren()) do
if v.Name == (kick.Name) then
local tbl_main =
{
"Start",
v
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Start",
v
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Start",
v
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Start",
v
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Start",
v
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Start",
v
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Start",
v
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Start",
v
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))
local tbl_main =
{
"Start",
v
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Start",
v
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Start",
v
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Start",
v
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Start",
v
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Start",
v
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Start",
v
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Start",
v
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Start",
v
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))
local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))
local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

local tbl_main =
{
"Vote"
}
game:GetService("Workspace").Remote.votekick:InvokeServer(unpack(tbl_main))

game:GetService("StarterGui"):SetCore("SendNotification", {
Title = "If Player is not kicked";
Text = "Please try again in 1 min and 30 secs!!";
})

wait(13)
game:GetService("StarterGui"):SetCore("SendNotification", {
Title = "Player Should be kicked";
Text = "If not please wait and try again!!";
})
end
end
end)

kicktext.Name = "kicktext"
kicktext.Parent = main
kicktext.BackgroundColor3 = Color3.new(1, 1, 1)
kicktext.Position = UDim2.new(0.0726495758, 0, 0.254595488, 0)
kicktext.Size = UDim2.new(0, 200, 0, 30)
kicktext.Font = Enum.Font.Legacy
kicktext.Text = "PlayerName"
kicktext.TextColor3 = Color3.new(1, 0, 0)
kicktext.TextSize = 14

title_2.Name = "title"
title_2.Parent = main
title_2.BackgroundColor3 = Color3.new(0, 1, 0)
title_2.Position = UDim2.new(0, 0, 0.801369846, 0)
title_2.Size = UDim2.new(0, 234, 0, 29)
title_2.Font = Enum.Font.Legacy
title_2.Text = "Made By Cataclysm#1311"
title_2.TextColor3 = Color3.new(1, 1, 0)
title_2.TextSize = 14

close.Name = "close"
close.Parent = main
close.BackgroundColor3 = Color3.new(0, 0, 0)
close.Position = UDim2.new(0.85042733, 0, 0, 0)
close.Size = UDim2.new(0, 35, 0, 31)
close.Font = Enum.Font.GothamBold
close.Text = "X"
close.TextColor3 = Color3.new(0, 0, 1)
close.TextScaled = true
close.TextSize = 14
close.TextWrapped = true
close.MouseButton1Down:connect(function()
main.Visible = false
openmain.Visible = true
end)

openmain.Name = "openmain"
openmain.Parent = gui
openmain.BackgroundColor3 = Color3.new(0, 0, 0)
openmain.Position = UDim2.new(0.00431832112, 0, 0.886977911, 0)
openmain.Size = UDim2.new(0, 100, 0, 27)
openmain.Visible = false

open.Name = "open"
open.Parent = openmain
open.BackgroundColor3 = Color3.new(1, 0, 0)
open.Size = UDim2.new(0, 100, 0, 27)
open.Font = Enum.Font.GothamBold
open.Text = "OPEN"
open.TextColor3 = Color3.new(1, 1, 1)
open.TextSize = 14
open.MouseButton1Down:connect(function()
openmain.Visible = false
main.Visible = true
end)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy