Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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


3 comments

0

Maybe try checking for it more than once?

1

what is the script supposed to do

0

what is it doing is the real question here

1 answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.