wait(1)powerlmp.Value=true function Alert()script.Parent.Assembly.Sound.Click:Play()script.AttackScript.Disabled=true script.Parent.Parent.On.Value=true end function Fire()script.Parent.Assembly.Sound.Click:Play()script.Parent.Parent.On.Value=true script.Parent.Values.Fire.Value=true end function Test()script.Parent.Assembly.Sound.Click:Play()script.AttackScript.Disabled=true script.Parent.Parent.On.Value=true end function Attack()script.AttackScript.Disabled=false end function Cancel()script.Parent.Assembly.Sound.Click:Play()script.AttackScript.Disabled=true script.Parent.Values.Fire.Value=false script.Parent.Values.Mode.Value=4 script.Parent.Parent.On.Value=false script.Parent.Values.TimerOn.Value=false end function Timer()script.Timer.Disabled=false signallmp.Value=true end script.Parent.Values.TimerOn.Changed:connect(function()if script.Parent.Values.TimerOn.Value==true then if script.Parent.Values.Mode.Value==2 then Alert()Timer()elseif script.Parent.Values.Mode.Value==3 then Attack()Timer()elseif script.Parent.Values.Mode.Value==5 then Fire()Timer()elseif script.Parent.Values.Mode.Value==1 then Test()elseif script.Parent.Values.Mode.Value==4 then script.AttackScript.Disabled=true Cancel()end end end)script.Parent.Values.Mode.Changed:connect(function()if script.Parent.Values.Mode.Value==4 then Cancel()end end)script.Parent.Values.Fire.Changed:connect(function()if script.Parent.Values.Fire.Value==true then script.Parent.Parent.Parent.FederalSignalRCM3.Modulate.Value=true else script.Parent.Parent.Parent.FederalSignalRCM3.Modulate.Value=false end end)
--
wait(1)
powerlmp.Value = true

function Alert()
	script.Parent.Assembly.Sound.Click:Play()
	script.AttackScript.Disabled = true
	script.Parent.Parent.On.Value = true
end

function Fire()
	script.Parent.Assembly.Sound.Click:Play()
	script.Parent.Parent.On.Value = true
	script.Parent.Values.Fire.Value = true
end

function Test()
	script.Parent.Assembly.Sound.Click:Play()
	script.AttackScript.Disabled = true
	script.Parent.Parent.On.Value = true
end

function Attack()
	script.AttackScript.Disabled = false
end

function Cancel()
	script.Parent.Assembly.Sound.Click:Play()
	script.AttackScript.Disabled = true
	script.Parent.Values.Fire.Value = false
	script.Parent.Values.Mode.Value = 4
	script.Parent.Parent.On.Value = false
	script.Parent.Values.TimerOn.Value = false
end

function Timer()
	script.Timer.Disabled = false
	signallmp.Value = true
end

script.Parent.Values.TimerOn.Changed:connect(function()
	if script.Parent.Values.TimerOn.Value == true then
		if script.Parent.Values.Mode.Value == 2 then
			Alert()
			Timer()
		elseif script.Parent.Values.Mode.Value == 3 then
			Attack()
			Timer()
		elseif script.Parent.Values.Mode.Value == 5 then
			Fire()
			Timer()
		elseif script.Parent.Values.Mode.Value == 1 then
			Test()
		elseif script.Parent.Values.Mode.Value == 4 then
			script.AttackScript.Disabled = true
			Cancel()
		end
	end
end)

script.Parent.Values.Mode.Changed:connect(function()
	if script.Parent.Values.Mode.Value == 4 then
		Cancel()
	end
end)

script.Parent.Values.Fire.Changed:connect(function()
	if script.Parent.Values.Fire.Value == true then
		script.Parent.Parent.Parent.FederalSignalRCM3.Modulate.Value = true
	else
		script.Parent.Parent.Parent.FederalSignalRCM3.Modulate.Value = false
	end
end)
