Loop doesn't working

Well, I have a problem with the while do, and that is that it does not work because it simply does not give or print or anything

local Circulo = script.Parent:WaitForChild("BarLoadRing")
local tweenInfo = TweenInfo.new(0.6, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 0)
local TweenService = game:GetService("TweenService")
local Enabled = script.Parent:WaitForChild("Enabled")

local CircularDIrection = script.Parent:WaitForChild("CircularOne")

while wait() and Enabled.Value == true do
	print("anmdoansda")
	if CircularDIrection.Value == false then
		local tween4 = TweenService:Create(Circulo, tweenInfo, {Rotation = 360})
		tween4:Play()
		tween4.Completed:Wait()
		Circulo.Rotation = 0
	elseif CircularDIrection.Value == true then
		local tween4 = TweenService:Create(Circulo, tweenInfo, {Rotation = -360})
		tween4:Play()
		tween4.Completed:Wait()
		Circulo.Rotation = 0
	end
end

Is Enabled.Value true? Are there any errors in the ouput?

Enabled.Value must be true when the loop starts, or else it will never run. Enabled.Value must be false.

1 Like