Money not being added after claiming from tycoon

My money wont go in to the leaderstats when i walk over the claimer, even though the number resets

TycoonModule



DataManger

image

7 Likes

If you want the leaderboard to update you should be updating the player.leaderstats.Cash value as the default roblox leaderboard is based on the leaderstats folder within the player.

2 Likes

So you mean change it to player.leaderstats.Cash.Value += profile.Data.TycoonData.Currency ? I tried that but it still continues.

Also i noticed that when i use console to add Cash it resets to 0 if that would have anything to do with it.

3 Likes

Try substituting profile.Data.TycoonData.Currency with a set number value like 1to see if the cash value increases, because if it does, then it is likely there is an issue with the profile.Data stuff

3 Likes

I just tried and it doesnt work, its weird and i think it just resets whenever money is added.

3 Likes

Try doing Cash = Cash + TycoonCurrency

3 Likes

Nope. I really am lost at why it doesn’t work.

3 Likes

try using print statements after each if query in the block

3 Likes

everything is being started i just dont get money

2 Likes

i think you forgot to reference the value

2 Likes

You mean player.leaderstats.Cash.Value? i already changed it to that.

2 Likes

Oh sorry i didnt respond, but I don’t know, try making a new test value and using that instead to see if it changes.

2 Likes

I figured out that its just in the function that it doesnt give any money. I tried creating a new one and it didnt add anything

2 Likes

image
Would i have something to do with ProfileTemplate either? because whatever value cash is set to it only stays at that. even if i use f9 console

2 Likes

there doesn’t seem to be a problem with the template

2 Likes

are you changing an instance value or dictionary value

2 Likes

What do you mean? How would i change dictionary value?

2 Likes

dictionary like (already declared)Example.Value = 4 or Example{ Value = “Hey”}

2 Likes

i caved in and used ai


I dont know if true

3 Likes

nope. didnt work. I tried making a couple of my own fixes but nothing seems to be working

2 Likes