local b=game.Players.LocalPlayer repeat wait()until b.Character local V=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")local r=b.Character:WaitForChild("\072\117\109\097\110\111\105\100")local g=100 local T=100 local B local j if b:FindFirstChild("\072\117\110\103\101\114\086\097\108")then j=b.HungerVal j.Value=T else(Instance.new("\073\110\116\086\097\108\117\101",b)).Name="\072\117\110\103\101\114\086\097\108"b.HungerVal.Value=T j=b.HungerVal end if b:FindFirstChild("\084\104\105\114\115\116\086\097\108")then B=b.ThirstVal B.Value=g else(Instance.new("\073\110\116\086\097\108\117\101",b)).Name="\084\104\105\114\115\116\086\097\108"b.ThirstVal.Value=g B=b.ThirstVal end local e=b:WaitForChild("\072\117\110\103\101\114\086\097\108")local d=thirstGui.Frame local I=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")B.Changed:connect(function()if B.Value>60 then(I:Create(d.Sede,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0),{ImageColor3=Color3.fromRGB(255,255,255);ImageTransparency=1})):Play()elseif B.Value<=0 then MedicSys.Fome:FireServer()elseif B.Value<=30 then(I:Create(d.Sede,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0),{ImageColor3=Color3.fromRGB(255,(B.Value/30)*255,(B.Value/60)*255),ImageTransparency=0})):Play()elseif B.Value<=60 then(I:Create(d.Sede,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0),{ImageColor3=Color3.fromRGB(255,255,(B.Value/60)*255),ImageTransparency=0})):Play()end end)e.Changed:connect(function()if e.Value>60 then(I:Create(d.Fome,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0),{ImageColor3=Color3.fromRGB(255,255,255);ImageTransparency=1})):Play()elseif e.Value<=0 then MedicSys.Fome:FireServer()elseif e.Value<=30 then(I:Create(d.Fome,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0),{ImageColor3=Color3.fromRGB(255,(e.Value/30)*255,(e.Value/60)*255),ImageTransparency=0})):Play()elseif e.Value<=60 then(I:Create(d.Fome,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0),{ImageColor3=Color3.fromRGB(255,255,(e.Value/60)*255);ImageTransparency=0})):Play()end end)while wait(ServerConfig.HungerWaitTime)do if B.Value-1>=0 then B.Value=B.Value-1 end if e.Value-1>=0 then e.Value=e.Value-1 end end

local plr = game.Players.LocalPlayer

repeat wait() until plr.Character -- waiting for player to load

local UIS = game:GetService("UserInputService")
local hum = plr.Character:WaitForChild("Humanoid")
local maxThirst = 100
local maxHunger = 100
local thirstValue
local hungerValue

if plr:FindFirstChild("HungerVal") then
	hungerValue = plr.HungerVal
	hungerValue.Value = maxHunger
else
	Instance.new("IntValue", plr).Name = "HungerVal"
	plr.HungerVal.Value = maxHunger
	hungerValue = plr.HungerVal
end

if plr:FindFirstChild("ThirstVal") then
	thirstValue = plr.ThirstVal
	thirstValue.Value = maxThirst
else
	Instance.new("IntValue", plr).Name = "ThirstVal"
	plr.ThirstVal.Value = maxThirst
	thirstValue = plr.ThirstVal
end

local hungerValue = plr:WaitForChild("HungerVal")
local Frame = thirstGui.Frame

local TS = game:GetService("TweenService")

thirstValue.Changed:connect(function()



	if thirstValue.Value > 60 then
		TS:Create(Frame.Sede,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0),{ImageColor3 = Color3.fromRGB(255,255,255),ImageTransparency = 1}):Play()
	elseif thirstValue.Value <= 0 then
		MedicSys.Fome:FireServer()
	elseif thirstValue.Value <= 30 then
		TS:Create(Frame.Sede,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0),{ImageColor3 = Color3.fromRGB(255,((thirstValue.Value/30)*255),((thirstValue.Value/60)*255)),ImageTransparency = 0}):Play()
	elseif thirstValue.Value <= 60 then
		TS:Create(Frame.Sede,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0),{ImageColor3 = Color3.fromRGB(255,255,((thirstValue.Value/60)*255)),ImageTransparency = 0}):Play()
	end
end)


hungerValue.Changed:connect(function()

	if hungerValue.Value > 60 then
		TS:Create(Frame.Fome,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0),{ImageColor3 = Color3.fromRGB(255,255,255),ImageTransparency = 1}):Play()
	elseif hungerValue.Value <= 0 then
		MedicSys.Fome:FireServer()
	elseif hungerValue.Value <= 30 then
		TS:Create(Frame.Fome,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0),{ImageColor3 = Color3.fromRGB(255,((hungerValue.Value/30)*255),((hungerValue.Value/60)*255)),ImageTransparency = 0}):Play()
	elseif hungerValue.Value <= 60 then
		TS:Create(Frame.Fome,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0),{ImageColor3 = Color3.fromRGB(255,255,((hungerValue.Value/60)*255)),ImageTransparency = 0}):Play()
	end
end)


while wait(ServerConfig.HungerWaitTime) do

	if thirstValue.Value - 1 >= 0 then
		thirstValue.Value = thirstValue.Value - 1
	end

	if hungerValue.Value - 1 >= 0 then
		hungerValue.Value = hungerValue.Value - 1
	end
	
end
