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

Script for max level is not working i messed it up please help me how to fix? [closed]

Asked by 4 years ago
Edited by royaltoe 4 years ago
function Hakdok()
    local dak = plr:WaitForChild("Stats").Level
    local bak = plr:WaitForChild("Stats").M

    if dak.Value == 30 then
        print("Working")
        bak.Value = 1
    end

    if bak.Value == 1 then
        print("MaxLevel")
        dak.Value = 30
    end
end

Hakdok()


0
Maybe try checking for it more than once? DeceptiveCaster 3761 — 4y
1
what is the script supposed to do royaltoe 5144 — 4y
0
what is it doing is the real question here speedyfox66 237 — 4y

Closed as Non-Descriptive by TomsGames and Shawnyg

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?

1 answer

Log in to vote
1
Answered by
TomsGames 225 Moderation Voter
4 years ago

You haven't given any context to the question, nor what your output is from this function, nor what you're wanting us to do for you. With such a lack of information we can only guess what you might want, which isn't a good use of anyone's time. Can you add some more information to your post?

At the moment, if the function is called and dak.Value is 30 then you should see both "Working" and then "MaxLevel" in the output. If dak.Value is not 30, then you will not see that output. That's what your function is doing. I can't guess what you want it to do though.

Ad