Script cant find values?

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.