first code: Location : part script type : script
script.Parent.ClickDetector.MouseClick:Connect(function(player)
player.leaderstats.Crops.Value = player.leaderstats.Crops.Value + 2
end)
outcome : Player.Leaderstats.Crops.Value = 2
second code: Location : tool Script type : Local Script
script.Parent.Equipped:Connect(function(Mouse)
Mouse.Button1Down:Connect(function()
player.leaderstats.Crops.Value = player.leaderstats.Crops.Value - 1
end)
end)
outcome : Player.Leaderstats.Crops.Value = 1
but when I clicked the part that has my first code again , the oucome is 4 instead of 3 How do I fix this , plz help me

1 comment
not a site to give name ideas