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()
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.
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?