currencyname = "stat"
-----------------------------------------
if
game.Workspace.tools.Tool.PickedUp = true
then
leaderstats.Value = stat.Value + 1
for i,V in pairs(game.Players:GetPlayers()) do
if V:FindFirstChild("leaderstats") and V then
V.leaderstats[currencyname].Value = V.leaderstats[currencyname].Vulue + 1
end
end
end
This is the script I made so far. Please tell me how I can fix this. I have spent a lot of time on this script.
Output: https://gyazo.com/4388c7a1d164342262da174d9aed2fa5 Doesn't work: https://gyazo.com/542840e84dcb3d4ef0f1125c6c3c6871

4 comments
Look at your script and try to find any error look. Before the line 12 you write Vulue correct and test it
I'm thinking that you can just make the extra value from the start and set it's value to nil or 0 then change it when the tool is picked up. OR you can try making a value with an invisible name then changing it's name :P
Try removing 'and V.' If I am right I believe you are just calling a tables with all the players inside.
Oh yeah and change 'Vulue' to 'Value'