Point system not adding up with boost in game!?
So I'm making this simulator and the points(popularity) you earn for a click should be (currency.Value) + 1 + boost.Value and you earn boost by buying stuff.But when I change the bosst to like 70 it still gives me +1 currency value.Plz help!
Script:
01 | local tool = script.Parent |
05 | tool.Activated:Connect( function () |
06 | local char = tool.Parent |
07 | local player = game.Players:GetPlayerFromCharacter(char) |
10 | local stats = player:WaitForChild( 'leaderstats' ) |
11 | local popularity = stats:WaitForChild( 'Popularity' ) |
12 | local boost = stats:WaitForChild( "Boost" ) |
13 | if popularity and boost then |
14 | popularity.Value = popularity.Value + (boost.Value + 1 ) |