function LockButtons()ButtonAlert.ProximityPrompt.Enabled=false ButtonAttack.ProximityPrompt.Enabled=false ButtonCancel.ProximityPrompt.Enabled=false ButtonTest.ProximityPrompt.Enabled=false ButtonFire.ProximityPrompt.Enabled=false end function UnlockButtons()ButtonAlert.ProximityPrompt.Enabled=true ButtonAttack.ProximityPrompt.Enabled=true ButtonCancel.ProximityPrompt.Enabled=true ButtonTest.ProximityPrompt.Enabled=true ButtonFire.ProximityPrompt.Enabled=true end function Check()if script.Parent.Locked.Value==true then LockButtons()else UnlockButtons()end end Check()script.Parent.Locked.Changed:Connect(function()Check()end)


function LockButtons()
	ButtonAlert.ProximityPrompt.Enabled = false
	ButtonAttack.ProximityPrompt.Enabled = false
	ButtonCancel.ProximityPrompt.Enabled = false
	ButtonTest.ProximityPrompt.Enabled = false
	ButtonFire.ProximityPrompt.Enabled = false
end

function UnlockButtons()
	ButtonAlert.ProximityPrompt.Enabled = true
	ButtonAttack.ProximityPrompt.Enabled = true
	ButtonCancel.ProximityPrompt.Enabled = true
	ButtonTest.ProximityPrompt.Enabled = true
	ButtonFire.ProximityPrompt.Enabled = true
end

function Check()
	if script.Parent.Locked.Value == true then
		LockButtons()
	else
		UnlockButtons()
	end
end

Check()

script.Parent.Locked.Changed:Connect(function()
	Check()
end)
