#Do GetAttributes not work in while loops?
1 messages · Page 1 of 1 (latest)
mb its like this
while game.Workspace.TFDUpgrade1:GetAttribute("bought") == true do
wait(1)
print("works")
end
```lua
they do work
whats bought set to
shoew me code
or well ss from explorer
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
It returns the time it took to wait