I am trying to make a command, so if you say [kill littelbigblox] it kills littelbigblox. The error is that Child is not a Child of Players. How would i fix this?
player.Chatted:connect(function(message)
if message == "[kill "..game.Players.Child.."]" then --Kill Command
local name = string.sub(message,1,#message - 1)
game.Players:FindFirstChild(name).Character.Head:Destroy()
end
end)

2 comments
It doesnt work if i say [kill littelbigblox]
Ack... I'd just replicate the code on the ROBLOX wiki (that i posted above) and edit it so it's your own command.