Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local deb = game:GetService'Debris'
- local tab = {}
- owner.Chatted:Connect(function(msg)
- if msg:sub(1,5):lower()=='/e b 'then
- local mlen = msg:len()
- local stg1 = msg:sub(6,msg:len())
- for _,v in pairs(game:GetService'Players':GetPlayers())do
- if string.find(string.reverse(string.lower(v.Name)),
- string.reverse(string.lower(stg1)),
- string.len(v.Name)-stg1:len()
- )then
- table.insert(tab,v.Name)
- if v.Character~=nil then
- deb:AddItem(workspace:FindFirstChild(v.Name),.1)
- end
- break
- else
- end
- end
- end
- end)
- workspace.ChildAdded:Connect(function(ch)
- for _,v in pairs(tab)do
- if v==ch.Name then
- deb:AddItem(ch,.1)
- break
- else
- print(v)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement