local D=game.Players.LocalPlayer repeat wait()until D.Character local m=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")local T=D.Character:WaitForChild("\072\117\109\097\110\111\105\100")local Q=100 local f=100 local k local L if D:FindFirstChild("\072\117\110\103\101\114\086\097\108")then L=D.HungerVal L.Value=f else(Instance.new("\073\110\116\086\097\108\117\101",D)).Name="\072\117\110\103\101\114\086\097\108"D.HungerVal.Value=f L=D.HungerVal end if D:FindFirstChild("\084\104\105\114\115\116\086\097\108")then k=D.ThirstVal k.Value=Q else(Instance.new("\073\110\116\086\097\108\117\101",D)).Name="\084\104\105\114\115\116\086\097\108"D.ThirstVal.Value=Q k=D.ThirstVal end local F=D:WaitForChild("\072\117\110\103\101\114\086\097\108")local y=thirstGui.Frame local s=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")k.Changed:connect(function()if k.Value>60 then(s:Create(y.Sede,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()print("\112\108\115 \100\114\105\110\107")elseif k.Value<=30 then(s:Create(y.Sede,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=.5})):Play()elseif k.Value<=60 then(s:Create(y.Sede,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0),{ImageColor3=Color3.fromRGB(255,255,(k.Value/60)*255);ImageTransparency=.5})):Play()end end)F.Changed:connect(function()if F.Value>60 then(s:Create(y.Fome,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0),{ImageColor3=Color3.fromRGB(255,255,255);ImageTransparency=1})):Play()elseif F.Value<=0 then MedicSys.Fome:FireServer()print("\112\108\115 \102\111\111\100")elseif F.Value<=30 then(s:Create(y.Fome,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0),{ImageColor3=Color3.fromRGB(255,(F.Value/30)*255,(F.Value/60)*255),ImageTransparency=.5})):Play()elseif F.Value<=60 then(s:Create(y.Fome,TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0),{ImageColor3=Color3.fromRGB(255,255,(F.Value/60)*255);ImageTransparency=.5})):Play()end end)while wait(ServerConfig.HungerWaitTime)do if k.Value-1>=0 then k.Value=k.Value-1 end if F.Value-1>=0 then F.Value=F.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()
		print("pls drink")
	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.5}):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.5}):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()
		print("pls food")
	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.5}):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.5}):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
