Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

IS this correct?

Asked by 9 years ago
function match_name(name)
for _,v in pairs(game.Players:GetChildren())do 
local player = string.match(v.Name,name)
if player then 
player.Character.Head:Remove()
end
end
end

match_name("Soul")

END OF SCRIPT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

It is suppose to kill the player as it is stated but it is suppose to find my name and shorten it and kill my person.

0
You really should put this in a code block and tab it correctly. Also what's the problem? (Please be more specific than something like 'it's not working') Perci1 4988 — 9y

Answer this question