Could anyone tell me If I got this right? Is there a more efficient way to do this?
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
if msg == "Heal" then
player.Character.Humanoid.Health = player.Character.Humanoid.MaxHealth
end
end)
end)
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
if msg == "Kill" then
player.Character.Humanoid.Health = 0
end
end)
end)
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
if msg == "TeleportBack" then
player.Character.Humanoid:MoveTo(CFrame.new(0,10,0))
end
end)
end)

1 comment
Bad question title.