Advertisement
Guest User

kick script

a guest
Apr 27th, 2017
10,514
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. -in roblox chat say 'kick plrname' all credits go to owner
  2. function kick(playername)
  3. for i = 1,5 do
  4. P = game.Players[playername]
  5. if P.Character and P.Character:FindFirstChild('HumanoidRootPart') and P.Character:FindFirstChild('Torso') then
  6. P.Character.HumanoidRootPart.CFrame = CFrame.new(math.random(999000, 1001000), 1000000, 1000000)
  7. local SP = Instance.new('SkateboardPlatform', P.Character) SP.Position = P.Character.HumanoidRootPart.Position SP.Transparency = 1
  8. spawn(function()
  9. repeat wait()
  10. if P.Character and P.Character:FindFirstChild('HumanoidRootPart') then SP.Position = P.Character.HumanoidRootPart.Position end
  11. until not game.Players:FindFirstChild(P.Name)
  12. end)
  13. P.Character.Torso.Anchored = true
  14. end
  15. end
  16. end
  17.  
  18. game.Players.LocalPlayer.Chatted:connect(function(msg)
  19. if msg:lower():sub(0, 5) == "kick " then
  20. playername = msg:lower():sub(6)
  21. for i, v in pairs(game.Players:children()) do
  22. if v.Name:lower():sub(0, string.len(playername)) == playername then
  23. kick(v.Name)
  24. end
  25. end
  26. end
  27. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement