So i have a very nice hunger system … however, im trying to stop the depletion of the food/water when this Attribute on the humanoid is set to True. It works when i change it manualy: https://gyazo.com/d75c15c3214620f8160482c73ecd0b27 But when i try to use a script it doesnt change
This is the script i use to try and change it:
local Lobby = plr.Character.Humanoid:GetAttribute(“Lobby”)
print(Lobby)
if Lobby == true then
Lobby = false
end
print(Lobby)
its a Local in StarterCharacterScript among other things.
It prints True which is fine but then it prints False and the Attribute remains True:
https://gyazo.com/4075218d8698397d9c0ad147eacafe1d
Any help would be much appreciated, ThankYou.