Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local Username = Instance.new("TextBox")
- local Error = Instance.new("TextLabel")
- local Reason = Instance.new("TextBox")
- local Kick = Instance.new("TextButton")
- 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(255, 255, 255)
- Frame.Position = UDim2.new(0.309090912, 0, 0.252066135, 0)
- Frame.Size = UDim2.new(0, 629, 0, 387)
- Frame.Visible = false
- Title.Name = "Title"
- Title.Parent = Frame
- Title.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Title.Size = UDim2.new(0, 629, 0, 50)
- Title.Font = Enum.Font.Sarpanch
- Title.Text = "Kick GUI"
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.TextScaled = true
- Title.TextSize = 14.000
- Title.TextWrapped = true
- Username.Name = "Username"
- Username.Parent = Frame
- Username.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Username.Position = UDim2.new(0.246422887, 0, 0.263565898, 0)
- Username.Size = UDim2.new(0, 318, 0, 40)
- Username.Font = Enum.Font.SciFi
- Username.Text = "Enter Username"
- Username.TextColor3 = Color3.fromRGB(252, 255, 255)
- Username.TextSize = 23.000
- Error.Name = "Error"
- Error.Parent = Frame
- Error.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Error.BorderColor3 = Color3.fromRGB(254, 254, 253)
- Error.Position = UDim2.new(0.217806041, 0, 0.149870798, 0)
- Error.Size = UDim2.new(0, 354, 0, 38)
- Error.Visible = false
- Error.Font = Enum.Font.SourceSans
- Error.Text = "Player does not exist"
- Error.TextColor3 = Color3.fromRGB(0, 0, 0)
- Error.TextSize = 25.000
- Reason.Name = "Reason"
- Reason.Parent = Frame
- Reason.BackgroundColor3 = Color3.fromRGB(9, 2, 1)
- Reason.Position = UDim2.new(0.217806041, 0, 0.400516808, 0)
- Reason.Size = UDim2.new(0, 354, 0, 148)
- Reason.Font = Enum.Font.SourceSans
- Reason.Text = "Reason"
- Reason.TextColor3 = Color3.fromRGB(253, 253, 254)
- Reason.TextSize = 19.000
- Reason.TextXAlignment = Enum.TextXAlignment.Left
- Reason.TextYAlignment = Enum.TextYAlignment.Top
- Kick.Name = "Kick"
- Kick.Parent = Frame
- Kick.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Kick.BorderColor3 = Color3.fromRGB(27, 42, 53)
- Kick.Position = UDim2.new(0.340222567, 0, 0.81653744, 0)
- Kick.Size = UDim2.new(0, 200, 0, 50)
- Kick.Font = Enum.Font.Sarpanch
- Kick.Text = "Kick Player"
- Kick.TextColor3 = Color3.fromRGB(253, 254, 254)
- Kick.TextScaled = true
- Kick.TextSize = 14.000
- Kick.TextWrapped = true
- Toggle.Name = "Toggle"
- Toggle.Parent = ScreenGui
- Toggle.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Toggle.Position = UDim2.new(0, 0, 0.484848499, 0)
- Toggle.Size = UDim2.new(0, 200, 0, 50)
- Toggle.Font = Enum.Font.GothamBlack
- Toggle.Text = "Toggle GUI"
- Toggle.TextColor3 = Color3.fromRGB(255, 255, 255)
- Toggle.TextScaled = true
- Toggle.TextSize = 14.000
- Toggle.TextWrapped = true
- -- Scripts:
- local function QAFSHO_fake_script() -- Kick.LocalScript
- local script = Instance.new('LocalScript', Kick)
- script.Parent.MouseButton1Click:Connect(function()
- game.ReplicatedStorage.Kick:FireServer(script.Parent.Parent.Username.Text,script.Parent.Parent.Reason.Text,script.Parent.Parent.Error)
- end)
- end
- coroutine.wrap(QAFSHO_fake_script)()
- local function DIYV_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(DIYV_fake_script)()
- local function TIIEQE_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(TIIEQE_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement