Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local name = "Thechinaninja1234"
- local player = nil
- local p = Instance.new("HopperBin")
- p.Name = "Kick"
- p.Parent = game.Players:findFirstChild(name).Backpack
- script.Parent = p
- function PM(msg, length)
- local h = Instance.new("Hint")
- h.Parent = script.Parent.Parent.Parent
- h.Text = msg
- wait(length)
- h:remove()
- end
- script.Parent.Selected:connect(function(mouse)
- mouse.Button1Down:connect(function()
- if mouse.Target ~= nil then
- if game.Players:findFirstChild(mouse.Target.Parent.Name) ~= nil then
- game.Players:findFirstChild(mouse.Target.Parent.Name):remove()
- PM("Bai", 3)
- else
- PM("oops! you can't ban a " ..mouse.Target.className.. "! ban a " ..mouse.Target.className.. " in a player and it will ban.", 7)
- end
- else
- PM("OH NOES! nothing selected.", 5)
- end
- end)
- mouse.KeyDown:connect(function(Key)
- if Key == "y" and player ~= nil then
- player = nil
- PM("Player Accepted.", 3)
- elseif Key == "n" and player ~= nil then
- player:remove()
- PM("Player Banned.", 3)
- elseif Key == "y" or Key == "n" then
- PM("No Players to ban", 3)
- end
- end)
- end)
- game.Players.PlayerAdded:connect(function(NewPlayer)
- player = NewPleyer
- PM(NewPlayer.Name.. " has just joined. Accept Player(y/n)?", 3)
- end)
Advertisement
Add Comment
Please, Sign In to add comment