I tried using ABritishChaps string:sub idea, but it did not work and the SH Discord said string.find is better, can anyone help?
if string.find(prefix, "kill ") then
print("found that")
target = game.Players:FindFirstChild(msg:sub(7))
print(target)
end
ps. Already put player.chatted and stuff! I will do the kill function later but for now the script just lets me know if it is working!

3 comments
I'm not sure but after "prefix", try using ".. 'kill '" instead of a comma. I have a function on my other device. I will try to help you whenever I am able.
ok, will try kdarren!
I tried but it still will not work!