wait(1)local h=game.TweenService local C=Random.new(tick()*os.time())local I={5,10}local F={5,10}local b=script.Parent.Parent.Neon local O=script.Parent function Start()b.A1.A.Enabled=true O.Alarm:Play()b.A1.Light.Enabled=true wait(2)b.A1.Glow.Enabled=true wait(1)O.Alarm:Stop()O.Start:Play()b.A4.Smoke.Enabled=true spawn(function()wait(3.0)O.Mid:Play()end)wait(1.5)b.A1.BLaser1.Enabled=true b.A1.BLaser2.Enabled=true for h,C in pairs(b.A3:GetChildren())do C.Enabled=true end end function Spin() end function Update() end function End()O.Alarm:Play()O.End:Play()wait(.2)O.Mid:Stop()wait(.5)O.Alarm:Stop()b.A1.Light.Enabled=false b.A4.Smoke.Enabled=false b.A1.A.Enabled=false b.A1.Glow.Enabled=false b.A1.BLaser1.Enabled=false b.A1.BLaser2.Enabled=false for h,C in pairs(b.A3:GetChildren())do C.Enabled=false end end wait(4)while true do local h=C:NextNumber(I[1],I[2])Start()for h=0,h,1 do Update()wait(1)end End()wait(C:NextNumber(F[1],F[2]))end

wait(1);
local TS = game.TweenService;
local R = Random.new(tick()*os.time());

local OnTime = {5,10};
local WaitTime = {5,10}; -- Time between turning on


local N = script.Parent.Parent.Neon;
local A = script.Parent;
function Start ()

	N.A1.A.Enabled = true;
	A.Alarm:Play();
	N.A1.Light.Enabled = true;
	wait(2);
	N.A1.Glow.Enabled = true;
	wait(1);
	A.Alarm:Stop();
	A.Start:Play();
	N.A4.Smoke.Enabled = true;

	
	
	spawn(function ()
		wait(3.0);
		A.Mid:Play();
	end);
	wait(1.5);
	N.A1.BLaser1.Enabled = true;
	N.A1.BLaser2.Enabled = true;
	
	for i, child in pairs(N.A3:GetChildren()) do
		child.Enabled = true;
	end 

end

function Spin ()
	
end

function Update ()
	
	
	-- Spin
	
end

function End ()
	
	
	A.Alarm:Play();
	A.End:Play();
	
	wait(0.2);
	A.Mid:Stop();
	wait(0.5);
	A.Alarm:Stop();
	
	N.A1.Light.Enabled = false;
	N.A4.Smoke.Enabled = false;
	N.A1.A.Enabled = false;
	N.A1.Glow.Enabled = false;
	N.A1.BLaser1.Enabled = false;
	N.A1.BLaser2.Enabled = false;
	
	for i, child in pairs(N.A3:GetChildren()) do
		child.Enabled = false;
	end 	
	
end


wait(4);
while true do
	
	local Total = R:NextNumber(OnTime[1], OnTime[2]);
	
	Start ();
	
	for i = 0, Total, 1 do
		Update();
		wait(1);
	end
	End();
	wait(R:NextNumber(WaitTime[1], WaitTime[2]));
end
