At the moment, I am trying to understand module scripts, and I was messing around with bindable events. This script is just not working… I’ve searched up and tried to find answers, asked ChatGPT, which says that the script should be working, and have honestly found nothing.
You are connecting the event after the module finishes running, you can see the issue by looking at the order of the prints. Try to change function changehealth to function HealthModule:changehealth(don’t try to run it in the module) and return it normally. Now you can run it in a script that requires it like this (put at the end of the script or after bindable event connection):