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