Drift counter multiplier

hi. i want to make the drift point multiplier for example when user reach 100k point its multiply by 2 but i cant get it working. what i did so far is put the code below in client side driftcounter.

if score == 100000 then
score = math.floor(score*2)
end

btw im new to programming

2 Likes

The Code is correct but you should put
if math.floor(score) == 100000 then
score = math.floor(score*2)
end
so that if score be like 100000.14
it will go to 100000
and i Recommend changing (==) to (>=) so that if you gets 100001 or higher you will multiply by 2
any btw why its 2 years and no one ever replay ?!