--if color == "Green" then
--wait ()
--elseif color == "Yellow" then
--wait(3)
--elseif color == "Red" then
--wait(0.3)
--end

if color == "Green" then
script.Parent.Big.Value = false
script.Parent.Size = UDim2.new(0.5, 0, 0.5, 0)
script.Parent.Position = UDim2.new(0.25, 0, 0.899999976, 0)
elseif color == "Yellow" then
if script.Parent.Big.Value == false then
script.Parent.Big.Value = true
script.Parent.heartbeat:Play()
script.Parent.Size = UDim2.new(0.6, 0, 0.6, 0)
script.Parent.Position = UDim2.new(0.219999999, 0, 0.899999976, -3)
wait(1)
elseif script.Parent.Big.Value == true then
script.Parent.Big.Value = false
script.Parent.heartbeatlow:Play()
script.Parent.Size = UDim2.new(0.5, 0, 0.5, 0)
script.Parent.Position = UDim2.new(0.25, 0, 0.899999976, 0)
end
elseif color == "Red" then
if script.Parent.Big.Value == false then
script.Parent.Big.Value = true
script.Parent.heartbeat:Play()
script.Parent.Size = UDim2.new(0.6, 0, 0.6, 0)
script.Parent.Position = UDim2.new(0.219999999, 0, 0.899999976, -3)
wait(0.3)
elseif script.Parent.Big.Value == true then
script.Parent.Big.Value = false
script.Parent.heartbeatlow:Play()
script.Parent.Size = UDim2.new(0.5, 0, 0.5, 0)
script.Parent.Position = UDim2.new(0.25, 0, 0.899999976, 0)
end
elseif color == "Dead" then
script.Parent.Big.Value = false
script.Parent.Size = UDim2.new(0.5, 0, 0.5, 0)
script.Parent.Position = UDim2.new(0.25, 0, 0.899999976, 0)
wait(10)
end
end