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?

2 comments
You don't require to wait for the player, as the script'll fire when the player loads. (Not counting the player's Character, PlayerGui, Backpack, etc.) Could you please explain more in-depth about what you're trying to accomplish?
Doesnt work.