#Im new and i dont undestand how to use if

1 messages · Page 1 of 1 (latest)

grand marsh
#

Thanks

indigo heath
grand marsh
#

like when i use it and how

indigo heath
#

else

local x = 3
if x == 5 then
   print("x does equal to 5")
else
  print("not equal to 5")
end
grand marsh
#

o alr ithink i never did ==

#

like why there is local x = 5 and not local x = script.parent

indigo heath
indigo heath
grand marsh
indigo heath
#

script.Parent refers to the parent of script

#

if a script was under ServerScriptService, script.Parent would be ServerScriptService

modest osprey
strong sand
#

= is to set something as something

#

for example if x = 5 then will not work

#

same as x == 5

#

they gotta go in the appropriate place