This is what happens when i do that:
Remove the touched event from the task.spawn()
function, it does not belong in the loop function.
Place a “local” behind “IronDropClone”
Add local
before you define IronDropClone and remove the task.spawn()
2 Likes
man i wish i had good eyesight
Looking at your code it is pretty obvious that this could cause some memory leaks.
How could i fix it? im not much of a coder
Change:
plr.leaderstats.Iron = plr.leaderstats.Iron + 1
To:
plr.leaderstats.Iron.Value = plr.leaderstats.Iron.Value + 1
1 Like
Thank u so much! It works, When the game releases, Do you want credit?
No problem, and there’s no need, we just helped you with an issue.
1 Like
Thank you, Have a merry christmas
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.