If i say the message in chat nothing happens and no error occurs i tried 2 different versions and both didnt work. Script1 =
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(message)
if string.sub(message,1,string.len("/kill "))== "/kill " then
if string.sub(message,string.len("/kill"))==player.Name then
player.Character.Humanoid.Health = 0
end
end
end)
end)
Script2 =
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(message)
if message ==("/kill ") then
if message == ("/kill ") == player.Name then
player.Character.Humanoid.Health = 0
end
end
end)
end)

1 comment
THX ;)