The held object is supposed to add 1 to the leaderboard but it says that "Subscriber is not a valid member of Folder". Here is the script for that:
local Subscriber = game.Players.LocalPlayer.leaderstats.Subscriber.Value -- Model should be named "leaderstats"
function GiveSubscribers()
Subscriber = Subscriber + 666
script.Parent.Parent:Remove()
end
script.Parent.MouseClick:connect(GiveSubscribers)
~~~~~~~~~~~~~~
The leaderboard script is this:
~~~~~~~~~~~~~~
game.Players.PlayerAdded:connect(function(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local money = Instance.new("IntValue",leaderstats)
money.Name = "Subscribers"
money.Value = 0
end)
~~~~~~~~~~~~~~
Please help me fix this!

7 comments
Thank you! You helped solved the "Subscriber is not a valid member of folder". It then said in Output that "MouseClick isn't a valid member of Tool." Here is the script for the tool: local Subscriber = game.Players.LocalPlayer.leaderstats.Subscribers.Value -- Model should be named "leaderstats" function GiveSubscribers() Subscriber = Subscriber + 666
You should use .Activated instead of .MouseClick in tools. If this answer has helped, accepting it would be much appreciated (:
It won't work, I added .Activated instead of .MouseClick but it still won't work :(. I also removed the .Remove because it removed my player all together.
Hello? Are you there? I won't upvote until this is solved.
I can try help if you edit your question to include your new script in a code block.
Sorry for sounding rude with that but I can try. Should I try to do it in an answer or in another question?
You could edit this question or make a new one with your updated code, and then paste the link to it here if someone else doesn't answer