#Can someone help m fix this
11 messages · Page 1 of 1 (latest)
replace Player with plr Character with char and define Enabled and TextLabel thingies
like
local TextLabel = textlabelpathhere
also why did you add TextLabel After enabled 😭

I think you should inform yourself on the basics a bit and then solve it
- the text is highlighted because variables are not defined
- to define a variable you do
local VariableName = somethingor justVariableName = somethingwhere something is your desired value that you want to store in that variable - in lua if you didnt define a variable it has a default value of
nilwichm means nothing
so
print(MyVariable) -- nil
MyVariable = 12
print(MyVariable) -- 12
MyVariable = "text"
print(MyVariable) -- "text"
MyVariable = OtherVariable -- assume OtherVariable is nil
print(MyVariable) -- nil
;compile
print(MyVariable) -- nil
MyVariable = 12
print(MyVariable) -- 12
MyVariable = "text"
print(MyVariable) -- "text"
MyVariable = OtherVariable -- assume OtherVariable is nil
print(MyVariable) -- nil
Program Output
nil
12
text
nil
atomixfuze#0000 | lua | lua-5.4.3 | wandbox.org
** You are now Level 6! **