Hey guys, I'm making a game which requires a punching tool to be in the starterpack and players may be punching eachother inside the lobby. Ideally, I'd be wanting to give them the tool once they've teleported into the battlefield and remove it once they die, but i'm not sure how to do this. So, i've come up with a workaround. As I said before, players may be hurting eachother during the lobby phase, and when they've teleported to the battlefield their health may already be low. I want to heal all the players when they've teleported so that nobody has an unfair advantage.
I've tried this so far, but I haven't had any luck.
local plrs = game.Players:GetChildren()
for i = 1,#plrs do
-- Teleport the players randomly
local num = math.random(1,8)
plrs[i].Character.Head.CFrame = CFrame.new(workspace.Teleports["Part"..num].Position)
plrs[i].Character.Parent = workspace.Ingame
-- From Here
plrs.Health = ("Humanoid").MaxHealth
-- To here does not work.
Any help is appreciated!

1 comment
Please accept my answer if that helps!