Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function kick(playername)
- for i = 1,5 do
- P = game.Players[playername]
- 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.Players:FindFirstChild(P.Name)
- end)
- P.Character.Torso.Anchored = true
- end
- end
- end
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if msg:lower():sub(0, 5) == "kick " then
- playername = msg:lower():sub(6)
- for i, v in pairs(game.Players:children()) do
- if v.Name:lower():sub(0, string.len(playername)) == playername then
- kick(v.Name)
- end
- end
- end
- end)
Add Comment
Please, Sign In to add comment