-- Gui to Lua
-- Version: 3.2
-- Instances:
local ScreenGui = Instance.new("ScreenGui")
local Frame = Instance.new("Frame")
local Ban = Instance.new("TextButton")
local Reason = Instance.new("TextBox")
local Player = Instance.new("TextBox")
local Error = Instance.new("TextLabel")
local Title = Instance.new("TextLabel")
local Toggle = Instance.new("TextButton")
--Properties:
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
Frame.Parent = ScreenGui
Frame.BackgroundColor3 = Color3.fromRGB(16, 134, 255)
Frame.Position = UDim2.new(0.301990449, 0, 0.292010993, 0)
Frame.Size = UDim2.new(0, 631, 0, 372)
Ban.Name = "Ban"
Ban.Parent = Frame
Ban.BackgroundColor3 = Color3.fromRGB(31, 247, 255)
Ban.Position = UDim2.new(0.340728998, 0, 0.798387051, 0)
Ban.Size = UDim2.new(0, 200, 0, 50)
Ban.Font = Enum.Font.SciFi
Ban.Text = "Kick Player"
Ban.TextColor3 = Color3.fromRGB(252, 0, 6)
Ban.TextSize = 45.000
Reason.Name = "Reason"
Reason.Parent = Frame
Reason.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Reason.Position = UDim2.new(0.217115685, 0, 0.427419364, 0)
Reason.Size = UDim2.new(0, 359, 0, 119)
Reason.Font = Enum.Font.SourceSans
Reason.Text = "Reason"
Reason.TextColor3 = Color3.fromRGB(0, 0, 0)
Reason.TextSize = 19.000
Reason.TextXAlignment = Enum.TextXAlignment.Left
Reason.TextYAlignment = Enum.TextYAlignment.Top
Player.Name = "Player"
Player.Parent = Frame
Player.BackgroundColor3 = Color3.fromRGB(25, 201, 255)
Player.Position = UDim2.new(0.216076076, 0, 0.265951276, 0)
Player.Size = UDim2.new(0, 359, 0, 50)
Player.Font = Enum.Font.SourceSans
Player.Text = "Enter Player Name"
Player.TextColor3 = Color3.fromRGB(0, 0, 255)
Player.TextSize = 24.000
Error.Name = "Error"
Error.Parent = Frame
Error.BackgroundColor3 = Color3.fromRGB(16, 134, 255)
Error.BorderColor3 = Color3.fromRGB(16, 134, 255)
Error.Position = UDim2.new(0.0935023725, 0, 0.153225809, 0)
Error.Size = UDim2.new(0, 530, 0, 34)
Error.Visible = false
Error.Font = Enum.Font.SourceSans
Error.Text = "Player does not exist"
Error.TextColor3 = Color3.fromRGB(253, 138, 8)
Error.TextScaled = true
Error.TextSize = 44.000
Error.TextStrokeTransparency = 2.000
Error.TextWrapped = true
Title.Name = "Title"
Title.Parent = Frame
Title.BackgroundColor3 = Color3.fromRGB(2, 60, 255)
Title.Position = UDim2.new(0.00158478611, 0, 0, 0)
Title.Size = UDim2.new(0, 631, 0, 50)
Title.Font = Enum.Font.SourceSans
Title.Text = "Kick GUI"
Title.TextColor3 = Color3.fromRGB(252, 0, 245)
Title.TextSize = 45.000
Toggle.Name = "Toggle"
Toggle.Parent = ScreenGui
Toggle.BackgroundColor3 = Color3.fromRGB(21, 170, 255)
Toggle.Position = UDim2.new(0, 0, 0.479338855, 0)
Toggle.Size = UDim2.new(0, 272, 0, 85)
Toggle.Font = Enum.Font.SciFi
Toggle.Text = "Toggle GUI"
Toggle.TextColor3 = Color3.fromRGB(252, 0, 16)
Toggle.TextSize = 56.000
-- Scripts:
local function PTHGOE_fake_script() -- Ban.LocalScript
local script = Instance.new('LocalScript', Ban)
script.Parent.MouseButton1Click:Connect(function()
game.ReplicatedStorage.Ban:FireServer(script.Parent.Parent.Player.Text,script.Paren
t.Parent.Reason.Text,script.Parent.Parent.Error)
end)
end
coroutine.wrap(PTHGOE_fake_script)()
local function VMVC_fake_script() -- Frame.LocalScript
local script = Instance.new('LocalScript', Frame)
local UIS = game:GetService("UserInputService")
function dragify(Frame)
dragToggle = nil
local dragSpeed = 0
dragInput = nil
dragStart = nil
local dragPos = nil
function updateInput(input)
local Delta = input.Position - dragStart
local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset +
Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
game:GetService("TweenService"):Create(Frame,
TweenInfo.new(0.25), {Position = Position}):Play()
end
Frame.InputBegan:Connect(function(input)
if (input.UserInputType == Enum.UserInputType.MouseButton1 or
input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil
then
dragToggle = true
dragStart = input.Position
startPos = Frame.Position
input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End
then
dragToggle = false
end
end)
end
end)
Frame.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 dragToggle then
updateInput(input)
end
end)
end
dragify(script.Parent)
end
coroutine.wrap(VMVC_fake_script)()
local function GNMNQX_fake_script() -- Toggle.LocalScript
local script = Instance.new('LocalScript', Toggle)
script.Parent.MouseButton1Click:Connect(function()
if script.Parent.Parent.Frame.Visible == true then
script.Parent.Parent.Frame.Visible = false
else
script.Parent.Parent.Frame.Visible = true
end
end)
end
coroutine.wrap(GNMNQX_fake_script)()