Will try when I am back at studio
And the script tryna access those values as shown in the previous screenshot is a local script right?
Yes, stored in StarterPlayerScripts
please add a delay if youāre going to try it
Well thereās many ways to fight this issue, Iāve seen people mentioning it before. You could use a delay with WaitForChild or make a Repeat Until the instance exist. You just gotta make sure you can handle it from doing a infinite yield. But safest way is just using a Module that keeps all the value stored in the ReplicatedStorage for all the clients and server to access (If those values donāt change).
Could you explain what the for loop is for? and exactly how itās supposed to work?
I donāt understand your structure, and how totalArmor and totalSpeed is calculated. If Armor and Speed are IntValues, then youāll have to add .Value
to the end (e.g. descendantStats.Armor.Value
)
For anyone else having this issue, it fixed itself when I opened studio back up. Not sure what was going on, either a bug or lag or something.
Glad your problem is fixed!
ksosospwpql
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.