@Cvieyra2test Although there's been constant explanations why to use local variables, I'll give my go.
- If you don't use local variables for their scopes, variables will be rewritten.
For example, image if a player were to increase their cash every 1 second. The following'll overwrite.
function GiveCash(Player) Cash = Instance.new('Cash') Cash.Name = 'Cash' Cash.Parent = Player while true do wait(1) Cash.Value = Cash.Value + 1 end end
If another player were to join, it'd increase his double, then for the next, triple, etc.
Put simply; if it doesn't end somewhere, memory's going to build.
Off-topic; you completely disregarded what I'd stated previously. Stop. Pushing. It. On. Posting what you just did completely stabbed what I'd said before.
TL;DR It's over. Quit beating at a dead horse. Don't even bother responding to this part of my post. Move on.