Why does this happen to my intvalue?

I made a script where when the player moves, an int value increases. I wanted to add another int value to the addition so when that int value gets added the other gets added too but it doesnt work anymore
Screenshot 2024-09-20 220138
Screenshot 2024-09-20 220144
Screenshot 2024-09-20 220150
Screenshot 2024-09-20 220203



studquest is the one i want added on with points, but the script just breaks and gives me that error whenever i try to move. why does this happen and how can i fix it to make both values add?

1 Like

You’re storing the value of the IntValue inside of the variable named studquest, not the IntValue itself. Replacing that line with:

local studquest = player:WaitForChild("Quests"):WaitForChild("StudQuest")

should fix your issue

how are u parenting studquest to quests folder if it gets created first ?

studquest is under the quest folder variable, i just took a screen shot of it after it

This helped with my problem, i didnt even realise this issue

1 Like

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