"attempt to index nil with 'GetAttribute'"

So I’m making a tycoon game using this video. https://www.youtube.com/watch?v=X9o2M0B6TTU&list=PLXSd5YZgxaXRMUSWybIRkELeIQLXJNZM7&index=3
however, I keep getting the error attempt to index nil with ‘GetAttribute’ here’s my module script the issue occurs in

the actual issue when I load the game to test is that the part I want to show up after being unlocked (hooked up to a system on the main script) isn’t showing up. You can watch the video to see what’s supposed to happen at the end.

Can you show the code that called this code

Right,

I’ve done everything from in the video pretty much.

1 Like

I did end up finding the solution on my own, sorry about that.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.