Code:
coin = script.Parent
local player = game:GetService("Players")
local Stats = Instance.new("IntValue")
Stats.Parent = player
Stats.Name = "leaderstats"
-- Variables
game.Players.PlayerAdded:Connect(function()
coin.Touched:Connect(function()
player.leaderstats.Value = player.leaderstats.Value + 1
wait(2)
coin.Transparency = 1
end)
end)
-- Function
print("Worked")
It printed 0 errors, please help!

3 comments
So is this script in the coin or serverscriptservice? The leaderstats should be in the serverscriptservice and the touch to get money should be in the coin
Okay! Let me try it.
Didn't work