#Do GetAttributes not work in while loops?

1 messages · Page 1 of 1 (latest)

languid scaffold
#
 while game.Workspace.TFDUpgrade1:GetAttribute("bought") do
      wait(1)
      print("works")
end    
```lua
#

mb its like this

#
 while game.Workspace.TFDUpgrade1:GetAttribute("bought") == true do
      wait(1)
      print("works")
end
 ```lua
rigid grove
#

whats bought set to

#

shoew me code

#

or well ss from explorer

past ocean
#

it works but you did it in a situation like this

#

you know how people always use like while task.wait() do or while true do

#

true is always true

#

and task.wait() just idk but it works

#

if the attribute is false then the while loop doesnt work

#

and will never ruj

#

run

#

but if you put it in an if statement inside the while loop and did while task.wait() do instead it would work

#

because its constantly checking

honest meadow