function Window.SetIsValidInput(N,K,r)Entry.TextBox.TextColor3=K and Color3.fromRGB(255,255,255)or Color3.fromRGB(255,73,73)N.Valid=K N._errorText=r end function Window.HideInvalidState(K)Entry.TextBox.TextColor3=Color3.fromRGB(255,255,255)end
--- Sets whether the command is in a valid state or not.
-- Cannot submit if in invalid state.
function Window:SetIsValidInput(isValid, errorText)
	Entry.TextBox.TextColor3 = isValid and Color3.fromRGB(255, 255, 255) or Color3.fromRGB(255, 73, 73)
	self.Valid = isValid
	self._errorText = errorText
end

function Window:HideInvalidState()
	Entry.TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
end
