I would honestly search through the forums before posting this normally, but search hasn't worked for me in a while.
Anyway, what would I do to have a script or effect that would fire whenever the player started resting in a bed? Ideally something that begins when they finish sleeping and can track the number of hours they slept too, but this isn't too much of a requirement.