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)
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.
5 comments
Where is the question?
Subscribers will increase by 1 when we click
Ah yes, I know exactly what you are asking now.
Do you mean click on a Gui? Just click the mouse when the tool is selected? Explain in more depth or we can't help you.
I'm trying to say that when you click on a vehicle, subs will increase by 1