Why is my regen script not working?

Why is my stamina regen script not working? (I am using attributes)

1 Like

The condition here is malformed:

(also please format as code and not screenshot next time)

It should be:

if States:GetAttribute("Stamina") and States:GetAttribute("Stamina") > 100 then

I’m unsure of any other issues with the script.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.