hello When we click on a Tool, we will increase the number of leaderstats for example:
game.workspace.Tool.activated:connect(function()
game.players.localplayer.leaderstats.Subs...???
end)
This is actually a simple script that is commonly used. Do this:
local Players = game:GetService("Players") script.Parent.Activated:Connect(function() local player = Players:GetPlayerFromCharacter() if player then player.leaderstats.Subscribers.Value = player.leaderstats.Subscribers.Value + 1 end end)