Target.Changed:Connect(function()if Target.Value=="\078\047\065"then script.Parent.MedicineAberto.TratarFeridasAberto.PainKiller.Style=Enum.ButtonStyle.RobloxButton script.Parent.MedicineAberto.TratarFeridasAberto.Energy.Style=Enum.ButtonStyle.RobloxButton script.Parent.MedicineAberto.TratarFeridasAberto.Epinephrine.Style=Enum.ButtonStyle.RobloxButtonDefault script.Parent.MedicineAberto.TratarFeridasAberto.Morphine.Style=Enum.ButtonStyle.RobloxButtonDefault script.Parent.OtherAberto.TratarFeridasAberto.BloodBag.Style=Enum.ButtonStyle.RobloxButtonDefault else script.Parent.MedicineAberto.TratarFeridasAberto.PainKiller.Style=Enum.ButtonStyle.RobloxButtonDefault script.Parent.MedicineAberto.TratarFeridasAberto.Energy.Style=Enum.ButtonStyle.RobloxButtonDefault script.Parent.MedicineAberto.TratarFeridasAberto.Epinephrine.Style=Enum.ButtonStyle.RobloxButton script.Parent.MedicineAberto.TratarFeridasAberto.Morphine.Style=Enum.ButtonStyle.RobloxButton script.Parent.OtherAberto.TratarFeridasAberto.BloodBag.Style=Enum.ButtonStyle.RobloxButton end end)script.Parent.BandagesAberto.TratarFeridasAberto.Comprimir.MouseButton1Down:Connect(function()if Saude.Variaveis.Doer.Value==false then if Target.Value=="\078\047\065"then Functions.Compress:FireServer()Timer.Barra.Size=UDim2.new(0,0,1,0);(TS:Create(Timer.Barra,TweenInfo.new(5),{Size=UDim2.new(1,0,1,0)})):Play()else FunctionsMulti.Compress:FireServer()Timer.Barra.Size=UDim2.new(0,0,1,0);(TS:Create(Timer.Barra,TweenInfo.new(5),{Size=UDim2.new(1,0,1,0)})):Play()end end end)script.Parent.BandagesAberto.TratarFeridasAberto.Bandagem.MouseButton1Down:Connect(function()if Saude.Variaveis.Doer.Value==false then if Target.Value=="\078\047\065"then Functions.Bandage:FireServer()Timer.Barra.Size=UDim2.new(0,0,1,0);(TS:Create(Timer.Barra,TweenInfo.new(2),{Size=UDim2.new(1,0,1,0)})):Play()else FunctionsMulti.Bandage:FireServer()Timer.Barra.Size=UDim2.new(0,0,1,0);(TS:Create(Timer.Barra,TweenInfo.new(2),{Size=UDim2.new(1,0,1,0)})):Play()end end end)script.Parent.BandagesAberto.TratarFeridasAberto.Tourniquet.MouseButton1Down:Connect(function()if Saude.Variaveis.Doer.Value==false then if Target.Value=="\078\047\065"then Functions.Tourniquet:FireServer()Timer.Barra.Size=UDim2.new(0,0,1,0);(TS:Create(Timer.Barra,TweenInfo.new(2),{Size=UDim2.new(1,0,1,0)})):Play()else FunctionsMulti.Tourniquet:FireServer()Timer.Barra.Size=UDim2.new(0,0,1,0);(TS:Create(Timer.Barra,TweenInfo.new(2),{Size=UDim2.new(1,0,1,0)})):Play()end end end)script.Parent.BandagesAberto.TratarFeridasAberto.Splint.MouseButton1Down:Connect(function()if Saude.Variaveis.Doer.Value==false then if Target.Value=="\078\047\065"then Functions.Splint:FireServer()Timer.Barra.Size=UDim2.new(0,0,1,0);(TS:Create(Timer.Barra,TweenInfo.new(2),{Size=UDim2.new(1,0,1,0)})):Play()else FunctionsMulti.Splint:FireServer()Timer.Barra.Size=UDim2.new(0,0,1,0);(TS:Create(Timer.Barra,TweenInfo.new(2),{Size=UDim2.new(1,0,1,0)})):Play()end end end)

Target.Changed:Connect(function()
	if Target.Value == "N/A" then
		script.Parent.MedicineAberto.TratarFeridasAberto.PainKiller.Style = Enum.ButtonStyle.RobloxButton
		script.Parent.MedicineAberto.TratarFeridasAberto.Energy.Style = Enum.ButtonStyle.RobloxButton
	
		script.Parent.MedicineAberto.TratarFeridasAberto.Epinephrine.Style = Enum.ButtonStyle.RobloxButtonDefault
		script.Parent.MedicineAberto.TratarFeridasAberto.Morphine.Style = Enum.ButtonStyle.RobloxButtonDefault
		
		script.Parent.OtherAberto.TratarFeridasAberto.BloodBag.Style = Enum.ButtonStyle.RobloxButtonDefault
	else

		script.Parent.MedicineAberto.TratarFeridasAberto.PainKiller.Style = Enum.ButtonStyle.RobloxButtonDefault
		script.Parent.MedicineAberto.TratarFeridasAberto.Energy.Style = Enum.ButtonStyle.RobloxButtonDefault	
		
		script.Parent.MedicineAberto.TratarFeridasAberto.Epinephrine.Style = Enum.ButtonStyle.RobloxButton
		script.Parent.MedicineAberto.TratarFeridasAberto.Morphine.Style = Enum.ButtonStyle.RobloxButton

		script.Parent.OtherAberto.TratarFeridasAberto.BloodBag.Style = Enum.ButtonStyle.RobloxButton
	end
end)

script.Parent.BandagesAberto.TratarFeridasAberto.Comprimir.MouseButton1Down:Connect(function()
	if Saude.Variaveis.Doer.Value == false then
	if Target.Value == "N/A" then
		Functions.Compress:FireServer()
		Timer.Barra.Size = UDim2.new(0,0,1,0)
		TS:Create(Timer.Barra, TweenInfo.new(5), {Size =  UDim2.new(1,0,1,0)}):Play()
	else
		FunctionsMulti.Compress:FireServer()
		Timer.Barra.Size = UDim2.new(0,0,1,0)
		TS:Create(Timer.Barra, TweenInfo.new(5), {Size =  UDim2.new(1,0,1,0)}):Play()
	end
	end
end)

script.Parent.BandagesAberto.TratarFeridasAberto.Bandagem.MouseButton1Down:Connect(function()
	if Saude.Variaveis.Doer.Value == false then
	if Target.Value == "N/A" then
		Functions.Bandage:FireServer()
		Timer.Barra.Size = UDim2.new(0,0,1,0)
		TS:Create(Timer.Barra, TweenInfo.new(2), {Size =  UDim2.new(1,0,1,0)}):Play()
	else
		FunctionsMulti.Bandage:FireServer()
		Timer.Barra.Size = UDim2.new(0,0,1,0)
		TS:Create(Timer.Barra, TweenInfo.new(2), {Size =  UDim2.new(1,0,1,0)}):Play()
	end
	end
end)

script.Parent.BandagesAberto.TratarFeridasAberto.Tourniquet.MouseButton1Down:Connect(function()
	if Saude.Variaveis.Doer.Value == false then
	if Target.Value == "N/A" then
		Functions.Tourniquet:FireServer()
		Timer.Barra.Size = UDim2.new(0,0,1,0)
		TS:Create(Timer.Barra, TweenInfo.new(2), {Size =  UDim2.new(1,0,1,0)}):Play()
	else
		FunctionsMulti.Tourniquet:FireServer()
		Timer.Barra.Size = UDim2.new(0,0,1,0)
		TS:Create(Timer.Barra, TweenInfo.new(2), {Size =  UDim2.new(1,0,1,0)}):Play()
	end
	end
end)

script.Parent.BandagesAberto.TratarFeridasAberto.Splint.MouseButton1Down:Connect(function()
	if Saude.Variaveis.Doer.Value == false then
	if Target.Value == "N/A" then
		Functions.Splint:FireServer()
		Timer.Barra.Size = UDim2.new(0,0,1,0)
		TS:Create(Timer.Barra, TweenInfo.new(2), {Size =  UDim2.new(1,0,1,0)}):Play()
	else
		FunctionsMulti.Splint:FireServer()
		Timer.Barra.Size = UDim2.new(0,0,1,0)
		TS:Create(Timer.Barra, TweenInfo.new(2), {Size =  UDim2.new(1,0,1,0)}):Play()
	end
	end
end)