--[[
	THIS GUIDE WILL HELP YOU FIX THE COLLISIONS WITH UNIONS AND MESHPARTS IN THE MAP.
	
	Run this script in the command bar to select all the Unions and MeshParts in the map.
	
	After that, go to the properties frame and set the CollisionFidelity property to "Hull"
	
	Then, set them back to "Default"
	
	You have fixed all union collisions.
	
	
	- Credit to Jester for original instructions
--]]


local unions = {}

function getUnions(root)
	for i,v in pairs(root:GetChildren()) do
		if v:IsA("UnionOperation") or v:IsA("MeshPart") then
			table.insert(unions,v)
		end
		getUnions(v)
	end
end

getUnions(workspace)

game.Selection:Set(unions)
