Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Kick Gui By Mewpo (i was looking to contribute so i did this quickly)
- local ScreenGui = Instance.new("ScreenGui")
- local open = Instance.new("Frame")
- local TextButton = Instance.new("TextButton")
- local guif = Instance.new("Frame")
- local close = Instance.new("Frame")
- local TextButton_2 = Instance.new("TextButton")
- local pbox = Instance.new("TextBox")
- local kickbttn = Instance.new("TextButton")
- local TextLabel = Instance.new("TextLabel")
- local pgui = game.Players.LocalPlayer.PlayerGui
- -- Properties
- ScreenGui.Parent = pgui
- open.Name = "open"
- open.Parent = ScreenGui
- open.BackgroundColor3 = Color3.new(0.458824, 0.458824, 0.458824)
- open.BackgroundTransparency = 0.30000001192093
- open.BorderColor3 = Color3.new(1, 1, 1)
- open.BorderSizePixel = 5
- open.Position = UDim2.new(0, 769, 0, 0)
- open.Size = UDim2.new(0, 118, 0, 28)
- TextButton.Parent = open
- TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton.BackgroundTransparency = 1
- TextButton.BorderSizePixel = 0
- TextButton.Size = UDim2.new(0, 118, 0, 28)
- TextButton.Font = Enum.Font.SourceSansItalic
- TextButton.FontSize = Enum.FontSize.Size18
- TextButton.Text = "Open"
- TextButton.TextSize = 18
- guif.Name = "guif"
- guif.Parent = ScreenGui
- guif.Active = true
- guif.BackgroundColor3 = Color3.new(1, 1, 1)
- guif.BackgroundTransparency = 0.20000000298023
- guif.BorderColor3 = Color3.new(0.247059, 0.14902, 1)
- guif.BorderSizePixel = 10
- guif.Draggable = true
- guif.Position = UDim2.new(0, 507, 0, 293)
- guif.Size = UDim2.new(0, 279, 0, 230)
- guif.Visible = false
- close.Name = "close"
- close.Parent = guif
- close.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
- close.BorderSizePixel = 0
- close.Position = UDim2.new(0, 253, 0, 0)
- close.Size = UDim2.new(0, 26, 0, 26)
- TextButton_2.Parent = close
- TextButton_2.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
- TextButton_2.BackgroundTransparency = 1
- TextButton_2.BorderSizePixel = 0
- TextButton_2.Position = UDim2.new(0, 0, 0, 1)
- TextButton_2.Size = UDim2.new(0, 26, 0, 25)
- TextButton_2.Font = Enum.Font.SciFi
- TextButton_2.FontSize = Enum.FontSize.Size24
- TextButton_2.Text = "X"
- TextButton_2.TextColor3 = Color3.new(0.00784314, 0.0196078, 0.027451)
- TextButton_2.TextSize = 24
- pbox.Name = "pbox"
- pbox.Parent = guif
- pbox.BackgroundColor3 = Color3.new(0.129412, 0.129412, 0.129412)
- pbox.BorderColor3 = Color3.new(0.262745, 0.666667, 0.976471)
- pbox.BorderSizePixel = 0
- pbox.Position = UDim2.new(0, 0, 0, 69)
- pbox.Size = UDim2.new(0, 279, 0, 46)
- pbox.Font = Enum.Font.SourceSansItalic
- pbox.FontSize = Enum.FontSize.Size18
- pbox.Text = "Player"
- pbox.TextColor3 = Color3.new(0.996078, 0.996078, 0.996078)
- pbox.TextSize = 18
- kickbttn.Name = "kickbttn"
- kickbttn.Parent = guif
- kickbttn.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
- kickbttn.BorderColor3 = Color3.new(0.176471, 0.176471, 0.176471)
- kickbttn.BorderSizePixel = 0
- kickbttn.Position = UDim2.new(0, 40, 0, 174)
- kickbttn.Size = UDim2.new(0, 200, 0, 39)
- kickbttn.Font = Enum.Font.SourceSansItalic
- kickbttn.FontSize = Enum.FontSize.Size28
- kickbttn.Text = "Kick"
- kickbttn.TextColor3 = Color3.new(1, 1, 1)
- kickbttn.TextSize = 28
- TextLabel.Parent = guif
- TextLabel.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
- TextLabel.BorderSizePixel = 0
- TextLabel.Size = UDim2.new(0, 200, 0, 26)
- TextLabel.Font = Enum.Font.SourceSansItalic
- TextLabel.FontSize = Enum.FontSize.Size18
- TextLabel.Text = "Kick GUI by Mewpo"
- TextLabel.TextColor3 = Color3.new(1, 1, 1)
- TextLabel.TextSize = 18
- open.TextButton.MouseButton1Down:connect(function()
- guif.Visible = true
- open.Visible = false
- end)
- close.TextButton.MouseButton1Down:connect(function()
- guif.Visible = false
- open.Visible = true
- end)
- kickbttn.MouseButton1Down:connect(function()
- function senkick(P)
- spawn(function()
- if P.Character and P.Character:FindFirstChild('HumanoidRootPart') and P.Character:FindFirstChild('Torso') then
- P.Character.HumanoidRootPart.CFrame = CFrame.new(math.random(999000, 1001000), 1000000, 1000000)
- local SP = Instance.new('SkateboardPlatform', P.Character) SP.Position = P.Character.HumanoidRootPart.Position SP.Transparency = 1
- spawn(function()
- repeat wait()
- if P.Character and P.Character:FindFirstChild('HumanoidRootPart') then SP.Position = P.Character.HumanoidRootPart.Position end
- until not game:GetService('Players'):FindFirstChild(P.Name)
- end)
- P.Character.Torso.Anchored = true
- end
- end)
- repeat wait() senkick(P) until not game:GetService("Players"):FindFirstChild(P)
- warn("Player: '"..P.."' was kicked from the game.")
- end
- senkick(game.Players[pbox.text])
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement