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 Test()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.AttackScript.Disabled=true script.Parent.Parent.On.Value=true script.Parent.Parent.Parent.FederalSignalRC6.Modulate.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.Mode.Value=4 signallmp.Value=false script.Parent.Parent.On.Value=false script.Parent.Parent.Parent.FederalSignalRC6.Modulate.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)

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 Test()
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.AttackScript.Disabled = true
script.Parent.Parent.On.Value = true
script.Parent.Parent.Parent.FederalSignalRC6.Modulate.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.Mode.Value = 4
	signallmp.Value = false
	script.Parent.Parent.On.Value = false
	script.Parent.Parent.Parent.FederalSignalRC6.Modulate.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)
