okay, so i want to make a awakening system in my game, which relies on a rage bar that u can fill up by dealing damage.
the main issue for me is storing the data somewhere, i tried a couple of things like a number value in my character,
but other scripts cant change the properties of the value, only one can which is inside the value.
does somebody can give me an idea where i can store the data? so i can check if its above 100 and u can turn on the mode?
thank you if u decide on helping me.
#damage storing problem
6 messages · Page 1 of 1 (latest)
I'm pretty sure Attributes are made for this and the reason you can't edit your value is most likely because you probably put the function that changes the value in a LocalScript meaning that the value only changes locally, and so not on the client.
And then there's an event for listening for attribute changes as well
so if i made an attribute in my character, make it increase by using a script not a local script, theoretically it should work?
Yes, as long as you are not updating it locally, by using a local script.
thanks for the idea, it works perfectly