--//Controller//--

for _, Button in pairs(Buttons:GetChildren()) do
	if Button.Name == "Button" then
		local Trigger = Button:WaitForChild("ProximityPrompt")
		
		Trigger.Triggered:Connect(function()
			if Button.Color == Color3.fromRGB(255, 0, 0) then
				Button.Color = Color3.fromRGB(0, 255, 0)
				
				table.insert(ActivatedButtons, Button)
				
				if #ActivatedButtons == Settings.Buttons then
					FloorConfiguration.TasksDone.Value = true

				end
			end
		end)
	end 
end
