It does not work via an error.
local Saying = game.Players.Chatted:connect() if Saying.msg:sub(1,5) "kill " then vic = msg:sub(1,9) vic:WaitforChild("Character") elseif vic:BreakJoints() then vic.Character.Health = 0 end -- No problem here just in Developer Thing it says That Chatted is not a valid member of Players
game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) --stuff --stuff end) end)
check out this wiki:http://wiki.roblox.com/index.php?title=Using_the_Chatted_event this one too:http://wiki.roblox.com/index.php?title=Conditional_statement you missed the == sign for the if statement