--Tone2Switch


Ton2Swch.Changed:Connect(function()
	if Ton2Swch.Value == true then
		Ton2Swch.Parent.P1.Transparency = 1
		Ton2Swch.Parent.P2.Transparency = 0
		ClickSound:Play()
		Tone2Val.Test.Value = true
	else
		Ton2Swch.Parent.P1.Transparency = 0
		Ton2Swch.Parent.P2.Transparency = 1
		ClickSound:Play()
		Tone2Val.Test.Value = false
	end
end)


Ton1Swch.Parent.SelectionObjectBrick.ProximityPrompt.Triggered:Connect(function()
	if Ton1Swch.Value == true then
		Ton1Swch.Parent.SelectionObjectBrick.ProximityPrompt.ActionText="Auto"
		Ton1Swch.Value = false
	else
		Ton1Swch.Parent.SelectionObjectBrick.ProximityPrompt.ActionText="Test"
		Ton1Swch.Value = true
	end
end)

Ton2Swch.Parent.SelectionObjectBrick.ProximityPrompt.Triggered:Connect(function()
	if Ton2Swch.Value == true then
		Ton2Swch.Parent.SelectionObjectBrick.ProximityPrompt.ActionText="Auto"
		Ton2Swch.Value = false
	else
		Ton2Swch.Parent.SelectionObjectBrick.ProximityPrompt.ActionText="Test"
		Ton2Swch.Value = true
	end
end)

ModSwch.Parent.SelectionObjectBrick.ProximityPrompt.Triggered:Connect(function()
	if ModSwch.Value == true then
		ModSwch.Parent.SelectionObjectBrick.ProximityPrompt.ActionText="Auto"
		ModSwch.Value = false
	else
		ModSwch.Parent.SelectionObjectBrick.ProximityPrompt.ActionText="Test"
		ModSwch.Value = true
	end
end)

function Lock()
		if script.Parent.Locked.Value == true then
		ModSwch.Parent.SelectionObjectBrick.ProximityPrompt.Enabled = false
		Ton1Swch.Parent.SelectionObjectBrick.ProximityPrompt.Enabled = false
		Ton2Swch.Parent.SelectionObjectBrick.ProximityPrompt.Enabled = false
		else
		ModSwch.Parent.SelectionObjectBrick.ProximityPrompt.Enabled = true
		Ton1Swch.Parent.SelectionObjectBrick.ProximityPrompt.Enabled = true
		Ton2Swch.Parent.SelectionObjectBrick.ProximityPrompt.Enabled = true
		end
end

Lock()

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