local function D(D)local n=D:FindFirstChild("\066\101\104\097\118\105\111\117\114\115")if n~=nil then n=n:GetChildren()for X=1,#n,1 do if n[X].Value==true then game.ReplicatedStorage.RemoteEvents.ExecuteBehaviour:FireServer(player.Character,D,n[X].Name)end end end end
--Handles behaviours
local function characterTouchedBrick(partTouched)
	local behaviours = partTouched:FindFirstChild("Behaviours")
	if behaviours ~= nil then
		behaviours = behaviours:GetChildren()
		for i = 1, #behaviours do
			if behaviours[i].Value == true then
				game.ReplicatedStorage.RemoteEvents.ExecuteBehaviour:FireServer(
					player.Character,
					partTouched,
					behaviours[i].Name
				)
			end
		end
	end
end
