I have made a thirst and hunger bar, but their bars do not change. I am getting no errors in the output either. Can someone tell me what I am doing wrong?
Player = script.Parent.Parent.Parent.Parent
Character = Player.Character
Thirst = 100
Hunger = 100
while true do
script.Parent.frameThirst.statThirst.Size = UDim2.new(Thirst*0.01, 0, 1, 0)
script.Parent.frameHunger.statHunger.Size = UDim2.new(Hunger*0.01, 0, 1, 0)
script.Parent.frameHealth.statHealth.Size = UDim2.new(Character.Humanoid.Health*0.01, 0, 1, 0)
wait()
end
while true do
Thirst = Thirst -1
Hunger = Hunger -1
wait(3)
end

1 comment
UPDATE: I did find that the bars are working. Only thing is, the values will not change.