Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

i have a problem with the points script i made can anyone help??

Asked by 6 years ago

ok so thi is the script

01local level = 1
02local exp = 0
03local axp = 375
04 
05local InStudio = game:GetService("RunService"):IsStudio()
06 
07if not InStudio then
08    level = game:GetService("DataStoreService"):GetDataStore("Levels")
09    exp = game:GetService("DataStoreService"):GetDataStore("EXP")
10    axp = game:GetService("DataStoreService"):GetDataStore("AXP")
11end
12 
13function savedata(dataname, playerid, value)
14    if InStudio then return end
15    dataname:SetAsync(playerid, value)
View all 72 lines...

and the problem is that the points you get when you level up the "points" get added to the starting value of the Points

something like this lvl 1 = 2 pts (because the player starts with this) lvl 2 = 4 pts (and thats what i meant) the pts or points is an IntValue

Answer this question