I'm trying to make a GamePass that makes you invincible, but it just doesn't do anything. I tried (awfully) to create a loop, but no dice. It's a server script in ServerScriptService. Here's my script:
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,6407448) then
player.character.Humanoid.Health = 9999999999
if character.Humanoid.Health == 100 then
print(character.Humanoid.Health)
end
end
end)
end)
