The script is supposed to kill a player's Character, I've tried so many times to fix it but it still doesn't work, here is the script command;
if string.lower(string.sub(1,5),msg)=="kill/"
findplayer=game:service("Players"):FindFirstChild(string.sub(4))
if findplayer then
findplayer.Character:BreakJoints()
end end
What am I doing wrong?

2 comments
So I was doing it correctly, but I was coding it wrong?
You just used the string library instead of the actual string message. So, yeah, you were kinda doing it right.