local ting = false --debouncer function onClicked(player) if not ting then --debounce check ting = true--activate debounce local stats = player:findFirstChild("leaderstats") if stats then --If moneyholder exists then local cash = stats:findFirstChild("PartsClicked") cash.Value = cash.Value + 1 end ting = false --remove debounce end end script.Parent.MouseClick:connect(onClicked)
its supposed to give you cash but it no work
Put a ClickDetector in the part and do: script.Parent.ClickDetector.MouseClick:connect(onClicked)