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.

1 comment

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')