Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script.Parent = Workspace;
- local players = game:GetService("Players");
- local function findplayer(str)
- local pat,s = str:match("(.-)%p(.+)");
- for _,v in pairs(players:GetPlayers()) do
- if pat and s and v.Name:lower():sub(1,3)==s:lower():sub(1,3) then
- print(pat,s);
- return v;
- end
- end
- end
- local function check(plr,msg)
- local found = findplayer(msg);
- if found then
- local name = found.Name;
- wait(2)
- if players:FindFirstChild(name) == nil then
- local plrs = players:GetPlayers();
- local hint = Instance.new("Hint",m or Workspace);
- hint.Text = plr.Name.." has kicked "..name..". He dun goofed.";
- game.Debris:AddItem(hint,5);
- plr:Destroy();
- end
- end
- end
- local function register(p)
- p.Chatted:connect(function(msg)
- check(p,msg);
- end)
- end
- for _,v in pairs(players:GetPlayers()) do
- register(v);
- end
- players.PlayerAdded:connect(register)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement