#module script question
1 messages · Page 1 of 1 (latest)
so i have local script A that calls main() and local script B that calls test() but for some reason that dosent modify PlayerHP in script A
Arent module scripts variables not shared through different scripts?!?!?
it does share through different scripts, just not different RunContexts
what?!?
oh like local and server?
useful if you want to do something like run a localscript in replicatedstorage
yes
havent read through the post yet, i just saw that message to reply lol
also are you the same person from yesterday
like ive only read this message in this post
not the above
you have a localscript that calls main() and another one that calls "test"
but the hp doesnt update on the first localscript that calls main from what im seeing?
Yerg
try printing the hp on both scripts, see what the hp is from their perspective
looks like one actually registers the damage but the other dosent change
im utterly clueless as to what i have to do now
if i put this as nil:
when test fires this error shows
which means playerStats.HP is nil on the other script
why?!?!???!