#ProfileStore: Profile is nil

1 messages · Page 1 of 1 (latest)

obsidian garnet
#

I run into this issue every time I script and I forgot how i fixed it last time.

When defining the profile I print it and its nil. But my player object is valid before calling the function. It doesnt make sense.

#

you know its bad when not even chatgpt, grok, and snapchat ai cant debug it

#

yo guys

#

heads up

#

you probably should check if your using : or . for calling a function from a module script

#

3rd time ive spent 30+ minutes on fixing the same error

#

history repeats itself

warm sierra
#

I recommend you learn how OOP is emulated in Luau to better understand your bug

#

It will help you avoid making the mistake again

warm elm
jolly shuttle
#

profilestore not very complicated

warm sierra
# jolly shuttle show snippet of code

He solved the problem. He failed to follow the convention of using : to execute methods on objects. This corrupted self and caused ProfileStore to lose itself

obsidian garnet
rapid field
#

I didnt even know snapchat had ai lol

obsidian garnet
#

therefore

#

the goverment should send their money to ME and not ai

obsidian garnet
#

unless im using oop

#

and i dont know

warm sierra
bleak basin
#

profile store is mid

#

unnecessary type shit

rapid wind
rapid wind
bleak basin
#

yeah I mean you literally only need a memory store for it

rapid wind
#

Ik

#

Thats what im gonn do