Script that gets fired everytime a character is added(CharacterAdded)
game.ReplicatedStorage.RemoteEvents.characterAdded.OnServerEvent:Connect(function(player)
wait(0.1)
workspace:FindFirstChild(player.Name).Humanoid.MaxHealth = (player.Stats.Strength.Value*2)+(player.Stats.Vitality.Value*4)+100
end)
The script is supposed to get the current value of strength and vitality of the player, however when I reset the value stays the same with strength and vitality being 1, always giving the player 106 health each time i respawn even with the value of strength and vitality being already greater than 1

1 comment
btw just found out that the script works but doesn't print even though it works as long as it gets fired from remoteevent lol