wait(1)local f=game.TweenService local F=Random.new(tick()*os.time())local R={5,10}local q={5;10}local k=script.Parent.Parent.Neon local b=script.Parent function Start()k.A1.A.Enabled=true b.Alarm:Play()k.A1.Light.Enabled=true wait(2)k.A1.Glow.Enabled=true wait(1)b.Alarm:Stop()b.Start:Play()k.A4.Smoke.Enabled=true spawn(function()wait(3.0)b.Mid:Play()end)wait(1.5)k.A1.BLaser1.Enabled=true k.A1.BLaser2.Enabled=true for f,F in pairs(k.A3:GetChildren())do F.Enabled=true end end function Spin() end function Update() end function End()b.Alarm:Play()b.End:Play()wait(.2)b.Mid:Stop()wait(.5)b.Alarm:Stop()k.A1.Light.Enabled=false k.A4.Smoke.Enabled=false k.A1.A.Enabled=false k.A1.Glow.Enabled=false k.A1.BLaser1.Enabled=false k.A1.BLaser2.Enabled=false for f,F in pairs(k.A3:GetChildren())do F.Enabled=false end end wait(4)while true do local f=F:NextNumber(R[1],R[2])Start()for f=0,f,1 do Update()wait(1)end End()wait(F:NextNumber(q[1],q[2]))end
--[[
Note to self replace this with a general 
function in the main server later



]]
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
