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

I'm making a leveling system and dont know how to use the module with it, help?

Asked by 3 years ago

i made a leveling system recently and i want to make it so it changes the needed exp according to the module SERVER SCRIPT

Exp.Changed:connect(function()
        fightingdata:SetAsync(player.UserId, value.Value)
        leveldata:SetAsync(player.UserId, level.Value)
        expdata:SetAsync(player.UserId, Exp.Value)
        neededdata:SetAsync(player.UserId, NeededExp.Value)
        if Exp.Value > NeededExp.Value then
            wait(0.5)
            local expleftover = Exp.Value - NeededExp.Value
            NeededExp.Value =  "" -- what the module says for the next level
            Exp.Value = expleftover
            level.Value = level.Value + 1
        end
    end)

MODULE

    50,
    75,
    100,
    120,
    150,
    230,
    350,
    500,
    750,
    900,
    1250,
0
This aint enough information AlexanderYar 788 — 3y

Answer this question