There is a value that is displayed on a money printer.
https://imgur.com/a/Qtw1P - Picture
That value is increased over time and the money is displayed every 3 seconds.
https://www.youtube.com/watch?v=wVr-INVnQsw&feature=youtu.be - Example Video
I want to add that value to Leaderstats value in the Local Player so they get more money upon clicking "Collect"
In a localscript in the "Collect" button, this is displayed but it does not function:
repeat wait() until game:GetService("Players").LocalPlayer local stats = game.Players.LocalPlayer.leaderstats.Value script.Parent.MouseButton1Click:connect(function(player) stats = stats + script.Parent.Parent.Amount.Value.Value end)
How do i grab the leaderstats in the local player and add whats in the value to the leaderboard?
Well you can’t do an adition with a NumberValue you have to do an addition of the NumberValues value. I suggest adding an extra .Value to local stats and see if that works. I am having trouble understanding your question so write back to me if this doesent work with a better explanation.