#Can someone help m fix this

11 messages · Page 1 of 1 (latest)

elfin pagoda
#

bunch of stuff undefined

#

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

cloud helm
#
  1. the text is highlighted because variables are not defined
  2. to define a variable you do local VariableName = something or just VariableName = something where something is your desired value that you want to store in that variable
  3. in lua if you didnt define a variable it has a default value of nil wichm 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
heavy elmBOT
#
Program Output
nil
12
text
nil

lean viperBOT
#

studio** You are now Level 6! **studio