I've been working on a game and always get errors on this, youtube doesnt work.
level=1(function()
script.Parent.Text="You Have Reached A Beginner Rank Keep Working To Level Up More Until Amature; Level: 15"
end)
I've been working on a game and always get errors on this, youtube doesnt work.
level=1(function()
script.Parent.Text="You Have Reached A Beginner Rank Keep Working To Level Up More Until Amature; Level: 15"
end)
The easiest way is to set the variable inside the function, and then call the function when you want to set the level variable, like so:
-- Call this function when you want to set level
local function SetLevel(newLevel)
level = newLevel
script.Parent.Text="You Have Reached A Beginner Rank Keep Working To Level Up More Until Amature; Level: 15"
end
-- Calling the function
SetLevel(1)
so does the function activate when the variable is 1?
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
please post the entire script.
that is